|
|
|
@ -3,7 +3,10 @@ name: Windows Release
@@ -3,7 +3,10 @@ name: Windows Release
|
|
|
|
|
on: |
|
|
|
|
push: |
|
|
|
|
branches: |
|
|
|
|
- 'master' |
|
|
|
|
- 'master' |
|
|
|
|
- 'Stable*' |
|
|
|
|
tags: |
|
|
|
|
- 'v*' |
|
|
|
|
pull_request: |
|
|
|
|
branches: |
|
|
|
|
- '*' |
|
|
|
@ -92,10 +95,19 @@ jobs:
@@ -92,10 +95,19 @@ jobs:
|
|
|
|
|
name: qgroundcontrol.pdb |
|
|
|
|
path: ${{ runner.temp }}\shadow_build_dir\staging\qgroundcontrol.pdb |
|
|
|
|
|
|
|
|
|
- name: Upload to S3 Bucket |
|
|
|
|
if: github.event_name == 'push' |
|
|
|
|
working-directory: ${{ runner.temp }}\shadow_build_dir\staging |
|
|
|
|
- name: Upload build 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 ${{ env.ARTIFACT }} s3://qgroundcontrol/builds/master/${{ env.ARTIFACT }} --region us-west-2 --acl public-read |
|
|
|
|
aws s3 cp ${ARTIFACT} s3://qgroundcontrol/builds/${{ env.GIT_BRANCH_NAME }}/${{ env.ARTIFACT }} --region us-west-2 --acl public-read |
|
|
|
|
|
|
|
|
|
- name: Upload tagged stable build to S3 latest Bucket |
|
|
|
|
if: github.event_name == 'push' && github.ref_type == 'tag' |
|
|
|
|
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/latest/${{ env.ARTIFACT }} --region us-west-2 --acl public-read |
|
|
|
|
|
|
|
|
|