如何在CircleCI上找到发布目录?

时间:2019-04-15 13:46:09

标签: continuous-integration aws-cli circleci circleci-2.0

我正在尝试将编译后的app-release.apk上传到S3存储桶,但是似乎我有一个无法解决的目录问题。似乎在部署阶段的任何地方都没有app-release.apk(在构建阶段完成之后就存在)。这是我的config.yml:

version: 2
jobs:
  build:
    docker:
      - image: cirrusci/flutter
    working_directory: ~/glina_soundboard
    steps:
      - checkout
      - run: flutter doctor
      #- run: flutter test
      - run: flutter build apk
  deploy:
    docker:
      - image: cirrusci/flutter
    working_directory: ~/glina_soundboard
    steps:
      - run:
          name: Install PIP
          command: |
            sudo curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
            sudo python get-pip.py
      - run:
          name: Install awscli
          command: sudo pip install awscli
      - run:
          name: Deploy to S3
          command: aws s3 sync build/app/outputs/apk/release/app-release.apk s3://glina-soundboard/ --delete
workflows:
  version: 2
  build-deploy:
    jobs:
      - build
      - deploy:
          requires:
            - build

我得到的错误显示在“部署到S3”阶段:

The user-provided path build/app/outputs/apk/release/app-release.apk does not exist.
Exited with code 255

0 个答案:

没有答案