File tree Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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-
2319jobs :
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'
You can’t perform that action at this time.
0 commit comments