Unverified Commit 65fb6e5e authored by Umberto Baldi's avatar Umberto Baldi Committed by GitHub

[skip-changelog] fix release CI (#2546)

* put permission under correct job only

* replace docker plugin with plain s3 command-line
parent 56691a80
......@@ -236,6 +236,9 @@ jobs:
- create-nightly-artifacts
- notarize-macos
- create-windows-installer
permissions:
contents: write
id-token: write # This is required for requesting the JWT
steps:
- name: Checkout repository
......@@ -272,12 +275,7 @@ jobs:
aws-region: ${{ env.AWS_REGION }}
- name: Upload release files on Arduino downloads servers
uses: docker://plugins/s3
env:
PLUGIN_SOURCE: "${{ env.DIST_DIR }}/*"
PLUGIN_TARGET: "${{ env.AWS_PLUGIN_TARGET }}nightly"
PLUGIN_STRIP_PREFIX: "${{ env.DIST_DIR }}/"
PLUGIN_BUCKET: ${{ secrets.DOWNLOADS_BUCKET }}
run: aws s3 sync ${{ env.DIST_DIR }} s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.AWS_PLUGIN_TARGET }}nightly
report:
runs-on: ubuntu-latest
......
......@@ -16,10 +16,6 @@ on:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
create-release-artifacts:
outputs:
......@@ -242,6 +238,7 @@ jobs:
- create-windows-installer
permissions:
contents: write
id-token: write # This is required for requesting the JWT
steps:
- name: Checkout repository
......@@ -299,12 +296,7 @@ jobs:
aws-region: ${{ env.AWS_REGION }}
- name: Upload release files on Arduino downloads servers
uses: docker://plugins/s3
env:
PLUGIN_SOURCE: "${{ env.DIST_DIR }}/*"
PLUGIN_TARGET: ${{ env.AWS_PLUGIN_TARGET }}
PLUGIN_STRIP_PREFIX: "${{ env.DIST_DIR }}/"
PLUGIN_BUCKET: ${{ secrets.DOWNLOADS_BUCKET }}
run: aws s3 sync ${{ env.DIST_DIR }} s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.AWS_PLUGIN_TARGET }}
- name: Update Homebrew formula
if: steps.prerelease.outputs.IS_PRE != 'true'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment