From ab7c716b0ee38f05a3bf45da74d3facb5e0f4154 Mon Sep 17 00:00:00 2001 From: davidsastresas Date: Wed, 24 Apr 2024 10:46:27 +0200 Subject: [PATCH] .github: Don't upload to S3, just for this particular branch, see details: As per discussion here https://github.com/mavlink/qgroundcontrol/pull/11276 --- .github/workflows/android_release.yml | 18 +----------------- .github/workflows/linux_release.yml | 18 +----------------- .github/workflows/macos_release.yml | 18 +----------------- .github/workflows/windows_release.yml | 19 +------------------ 4 files changed, 4 insertions(+), 69 deletions(-) diff --git a/.github/workflows/android_release.yml b/.github/workflows/android_release.yml index 680b75f7116..b6e15036967 100644 --- a/.github/workflows/android_release.yml +++ b/.github/workflows/android_release.yml @@ -135,20 +135,4 @@ jobs: uses: actions/upload-artifact@master with: name: ${{ matrix.ARTIFACT }} - path: ${{ runner.temp }}/shadow_build_dir/package/${{ matrix.ARTIFACT }} - - - 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 + path: ${{ runner.temp }}/shadow_build_dir/package/${{ matrix.ARTIFACT }} \ No newline at end of file diff --git a/.github/workflows/linux_release.yml b/.github/workflows/linux_release.yml index 148ad0a1c73..b86efe03ef8 100644 --- a/.github/workflows/linux_release.yml +++ b/.github/workflows/linux_release.yml @@ -104,20 +104,4 @@ jobs: uses: actions/upload-artifact@master with: name: ${{ env.ARTIFACT }} - path: ${{ runner.temp }}/shadow_build_dir/package/${{ env.ARTIFACT }} - - - 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 ${ARTIFACT} s3://qgroundcontrol/builds/${{ github.ref_name }}/${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/${ARTIFACT} --region us-west-2 --acl public-read + path: ${{ runner.temp }}/shadow_build_dir/package/${{ env.ARTIFACT }} \ No newline at end of file diff --git a/.github/workflows/macos_release.yml b/.github/workflows/macos_release.yml index f6564012023..2c77d14dc8b 100644 --- a/.github/workflows/macos_release.yml +++ b/.github/workflows/macos_release.yml @@ -100,20 +100,4 @@ jobs: uses: actions/upload-artifact@master with: name: ${{ env.ARTIFACT }} - path: ${{ runner.temp }}/shadow_build_dir/package/${{ env.ARTIFACT }} - - - 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 ${ARTIFACT} s3://qgroundcontrol/builds/${{ github.ref_name }}/${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/${ARTIFACT} --region us-west-2 --acl public-read + path: ${{ runner.temp }}/shadow_build_dir/package/${{ env.ARTIFACT }} \ No newline at end of file diff --git a/.github/workflows/windows_release.yml b/.github/workflows/windows_release.yml index 774b9d0f852..15bb21ac468 100644 --- a/.github/workflows/windows_release.yml +++ b/.github/workflows/windows_release.yml @@ -105,21 +105,4 @@ jobs: uses: actions/upload-artifact@master with: name: qgroundcontrol.pdb - path: ${{ runner.temp }}\shadow_build_dir\staging\qgroundcontrol.pdb - - - name: Upload build to S3 Bucket - if: github.event_name == 'push' - working-directory: ${{ runner.temp }}\shadow_build_dir\staging - 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/${{ github.ref_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\staging - 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/latest/${{ env.ARTIFACT }} --region us-west-2 --acl public-read - + path: ${{ runner.temp }}\shadow_build_dir\staging\qgroundcontrol.pdb \ No newline at end of file