使用 BitBucket 管道将 React 网站部署到 Azure 存储时出现问题

Problem deploying React website to Azure Storage using BitBucket pipelines

我正在尝试构建一个 React 项目并使用 BitBucket 管道部署到 Azure 存储。添加最后一行时出现错误:

- pipe: mspipes/azure-storage-deploy:2.0.0
     variables:
     SOURCE: 'upload'
     DESTINATION: $AZURE_DESTINATION
     DESTINATION_SAS_TOKEN: $AZURE_STORAGE_SAS_TOKEN
     DEBUG: 'true'

但实际上什么都没有突出显示!

完整脚本:

image: node: 10.15.3

pipelines:
  default:
    -step:
        name: Build React Project
        script:
          -npm install
          - npm run - script build
          - mkdir packaged
          - tar - czvf packaged / package -${ BITBUCKET_BUILD_NUMBER}.tar.gz - C build.
        artifacts:
          -packaged/**
    - step:
        name: Deploy to Azure Storage Account
        script:
          - mkdir upload
          - tar -xf packaged/package-${BITBUCKET_BUILD_NUMBER}.tar.gz -C upload
          - pipe: mspipes/azure-storage-deploy:2.0.0
              variables:
              SOURCE: 'upload/'
              DESTINATION: $AZURE_DESTINATION
              DESTINATION_SAS_TOKEN: $AZURE_STORAGE_SAS_TOKEN
              DEBUG: 'true'

带有 "variables:" 的行缩进了太多的两个空格...应该与上面的工作管道对齐。