云存储位桶管道忽略目录

Cloud storage bitbucket pipeline ignores directories

我有以下管道

image: node:10.15.3

pipelines:
  default:
      - step:
          name: Installing
          caches:
            - node
          script:
            - rm -rf package-lock.json
            - rm -rf node_modules
            - npm install
      - step:
          name: Build
          script:
            - npm install --production
          artifacts:
            - build/**
      - step:
          name: Deploying
          script:
          - pipe: atlassian/google-cloud-storage-deploy:0.4.5
            variables:
              KEY_FILE: $KEY_FILE
              PROJECT: $PROJECT
              BUCKET: 'bucketname'
              SOURCE: 'build'
              CACHE_CONTROL: 'max-age=30'
              ACL: 'public-read'

预期的行为是将所有内容部署到 build 文件夹中,但它会上传 build 文件夹本身,因此在我的存储中,有一个 build 文件夹,然后是这个文件夹中的所有内容...

我试过了

'build/**' it picks only files and ignore directories

'buiid/' it behave same as 'build' picks build directory along with everything inside it directories and folders

'build/*' it picks only files and ignore directories

我怎样才能构建文件夹、文件和目录中的所有内容..

谢谢

我发现了问题,它在管道内部,只有复制命令我删除了管道并使用 -r 明确写入以递归复制文件夹