|
|
|
@ -4,6 +4,7 @@ on:
@@ -4,6 +4,7 @@ on:
|
|
|
|
|
push: |
|
|
|
|
branches: |
|
|
|
|
- 'master' |
|
|
|
|
- 'Stable*' |
|
|
|
|
pull_request: |
|
|
|
|
branches: |
|
|
|
|
- '*' |
|
|
|
@ -86,10 +87,15 @@ jobs:
@@ -86,10 +87,15 @@ jobs:
|
|
|
|
|
name: ${{ 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 |
|
|
|
|
if: github.event_name == 'push' |
|
|
|
|
working-directory: ${{ runner.temp }}/shadow_build_dir/package |
|
|
|
|
run: | |
|
|
|
|
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 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 |
|
|
|
|