Skip to content

Commit

Permalink
Prevent uploading artifacts from pull requests. Do it only from merge…
Browse files Browse the repository at this point in the history
…s, since the secrets are not defined and it fails.
  • Loading branch information
JosepMaJAZ committed Jun 19, 2024
1 parent dd67941 commit ee9119f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,10 @@ jobs:

- name: Upload to NasuTek MinIO S3
uses: shallwefootball/s3-upload-action@master
env:
super_secret: ${{ secrets.nte_cdn_s3_key_id }}
if: ${{ env.super_secret == '' }}
id: S3
if: secrets.nte_cdn_s3_key_id != null
with:
aws_key_id: ${{secrets.nte_cdn_s3_key_id}}
aws_secret_access_key: ${{secrets.nte_cdn_s3_secret_access_key}}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-debug-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ jobs:

- name: Upload to NasuTek MinIO S3
uses: shallwefootball/s3-upload-action@master
if: secrets.nte_cdn_s3_key_id != null
env:
super_secret: ${{ secrets.nte_cdn_s3_key_id }}
if: ${{ env.super_secret == '' }}
id: S3
with:
aws_key_id: ${{secrets.nte_cdn_s3_key_id}}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-release-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ jobs:

- name: Upload to NasuTek MinIO S3
uses: shallwefootball/s3-upload-action@master
if: secrets.nte_cdn_s3_key_id != null
env:
super_secret: ${{ secrets.nte_cdn_s3_key_id }}
if: ${{ env.super_secret == '' }}
id: S3
with:
aws_key_id: ${{secrets.nte_cdn_s3_key_id}}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-relwithdebinfo-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ jobs:

- name: Upload to NasuTek MinIO S3
uses: shallwefootball/s3-upload-action@master
if: secrets.nte_cdn_s3_key_id != null
env:
super_secret: ${{ secrets.nte_cdn_s3_key_id }}
if: ${{ env.super_secret == '' }}
id: S3
with:
aws_key_id: ${{secrets.nte_cdn_s3_key_id}}
Expand Down

0 comments on commit ee9119f

Please sign in to comment.