|
|
@ -146,3 +146,19 @@ jobs: |
|
|
|
asset_name: ${{ matrix.ARTIFACT }} |
|
|
|
asset_name: ${{ matrix.ARTIFACT }} |
|
|
|
tag: ${{ github.ref }} |
|
|
|
tag: ${{ github.ref }} |
|
|
|
overwrite: true |
|
|
|
overwrite: true |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- 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 ${{ matrix.ARTIFACT }} s3://qgroundcontrol/builds/${{ github.ref_name }}/${{ matrix.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 ${{ matrix.ARTIFACT }} s3://qgroundcontrol/latest/${{ matrix.ARTIFACT }} --region us-west-2 --acl public-read |
|
|
|