Browse Source

Push Stable branch builds to S3

QGC4.4
Don Gagne 3 years ago committed by Don Gagne
parent
commit
454f5583df
  1. 8
      .github/workflows/macos_release.yml

8
.github/workflows/macos_release.yml

@ -4,6 +4,7 @@ on:
push: push:
branches: branches:
- 'master' - 'master'
- 'Stable*'
pull_request: pull_request:
branches: branches:
- '*' - '*'
@ -86,10 +87,15 @@ jobs:
name: ${{ env.ARTIFACT }} name: ${{ env.ARTIFACT }}
path: ${{ runner.temp }}/shadow_build_dir/package/${{ env.ARTIFACT }} path: ${{ runner.temp }}/shadow_build_dir/package/${{ env.ARTIFACT }}
# This will set GIT_BRANCH_NAME environment variable
- name: Git branch name
id: git-branch-name
uses: EthanSK/git-branch-name-action@v1
- name: Upload to S3 Bucket - name: Upload to S3 Bucket
if: github.event_name == 'push' if: github.event_name == 'push'
working-directory: ${{ runner.temp }}/shadow_build_dir/package working-directory: ${{ runner.temp }}/shadow_build_dir/package
run: | run: |
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }}
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws s3 cp ${ARTIFACT} s3://qgroundcontrol/builds/master/${ARTIFACT} --region us-west-2 --acl public-read aws s3 cp ${ARTIFACT} s3://qgroundcontrol/builds/${GIT_BRANCH_NAME}/${ARTIFACT} --region us-west-2 --acl public-read

Loading…
Cancel
Save