Skip to content

Commit 65fb6e5

Browse files
authored
[skip-changelog] fix release CI (#2546)
* put permission under correct job only * replace docker plugin with plain s3 command-line
1 parent 56691a8 commit 65fb6e5

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

Diff for: .github/workflows/publish-go-nightly-task.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ jobs:
236236
- create-nightly-artifacts
237237
- notarize-macos
238238
- create-windows-installer
239+
permissions:
240+
contents: write
241+
id-token: write # This is required for requesting the JWT
239242

240243
steps:
241244
- name: Checkout repository
@@ -272,12 +275,7 @@ jobs:
272275
aws-region: ${{ env.AWS_REGION }}
273276

274277
- name: Upload release files on Arduino downloads servers
275-
uses: docker://plugins/s3
276-
env:
277-
PLUGIN_SOURCE: "${{ env.DIST_DIR }}/*"
278-
PLUGIN_TARGET: "${{ env.AWS_PLUGIN_TARGET }}nightly"
279-
PLUGIN_STRIP_PREFIX: "${{ env.DIST_DIR }}/"
280-
PLUGIN_BUCKET: ${{ secrets.DOWNLOADS_BUCKET }}
278+
run: aws s3 sync ${{ env.DIST_DIR }} s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.AWS_PLUGIN_TARGET }}nightly
281279

282280
report:
283281
runs-on: ubuntu-latest

Diff for: .github/workflows/release-go-task.yml

+2-10
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ on:
1616
tags:
1717
- "v[0-9]+.[0-9]+.[0-9]+*"
1818

19-
permissions:
20-
id-token: write # This is required for requesting the JWT
21-
contents: read # This is required for actions/checkout
22-
2319
jobs:
2420
create-release-artifacts:
2521
outputs:
@@ -242,6 +238,7 @@ jobs:
242238
- create-windows-installer
243239
permissions:
244240
contents: write
241+
id-token: write # This is required for requesting the JWT
245242

246243
steps:
247244
- name: Checkout repository
@@ -299,12 +296,7 @@ jobs:
299296
aws-region: ${{ env.AWS_REGION }}
300297

301298
- name: Upload release files on Arduino downloads servers
302-
uses: docker://plugins/s3
303-
env:
304-
PLUGIN_SOURCE: "${{ env.DIST_DIR }}/*"
305-
PLUGIN_TARGET: ${{ env.AWS_PLUGIN_TARGET }}
306-
PLUGIN_STRIP_PREFIX: "${{ env.DIST_DIR }}/"
307-
PLUGIN_BUCKET: ${{ secrets.DOWNLOADS_BUCKET }}
299+
run: aws s3 sync ${{ env.DIST_DIR }} s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.AWS_PLUGIN_TARGET }}
308300

309301
- name: Update Homebrew formula
310302
if: steps.prerelease.outputs.IS_PRE != 'true'

0 commit comments

Comments
 (0)