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: ...@@ -236,6 +236,9 @@ jobs:
- create-nightly-artifacts - create-nightly-artifacts
- notarize-macos - notarize-macos
- create-windows-installer - create-windows-installer
permissions:
contents: write
id-token: write # This is required for requesting the JWT
steps: steps:
- name: Checkout repository - name: Checkout repository
...@@ -272,12 +275,7 @@ jobs: ...@@ -272,12 +275,7 @@ jobs:
aws-region: ${{ env.AWS_REGION }} aws-region: ${{ env.AWS_REGION }}
- name: Upload release files on Arduino downloads servers - name: Upload release files on Arduino downloads servers
uses: docker://plugins/s3 run: aws s3 sync ${{ env.DIST_DIR }} s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.AWS_PLUGIN_TARGET }}nightly
env:
PLUGIN_SOURCE: "${{ env.DIST_DIR }}/*"
PLUGIN_TARGET: "${{ env.AWS_PLUGIN_TARGET }}nightly"
PLUGIN_STRIP_PREFIX: "${{ env.DIST_DIR }}/"
PLUGIN_BUCKET: ${{ secrets.DOWNLOADS_BUCKET }}
report: report:
runs-on: ubuntu-latest runs-on: ubuntu-latest
......
...@@ -16,10 +16,6 @@ on: ...@@ -16,10 +16,6 @@ on:
tags: tags:
- "v[0-9]+.[0-9]+.[0-9]+*" - "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: jobs:
create-release-artifacts: create-release-artifacts:
outputs: outputs:
...@@ -242,6 +238,7 @@ jobs: ...@@ -242,6 +238,7 @@ jobs:
- create-windows-installer - create-windows-installer
permissions: permissions:
contents: write contents: write
id-token: write # This is required for requesting the JWT
steps: steps:
- name: Checkout repository - name: Checkout repository
...@@ -299,12 +296,7 @@ jobs: ...@@ -299,12 +296,7 @@ jobs:
aws-region: ${{ env.AWS_REGION }} aws-region: ${{ env.AWS_REGION }}
- name: Upload release files on Arduino downloads servers - name: Upload release files on Arduino downloads servers
uses: docker://plugins/s3 run: aws s3 sync ${{ env.DIST_DIR }} s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.AWS_PLUGIN_TARGET }}
env:
PLUGIN_SOURCE: "${{ env.DIST_DIR }}/*"
PLUGIN_TARGET: ${{ env.AWS_PLUGIN_TARGET }}
PLUGIN_STRIP_PREFIX: "${{ env.DIST_DIR }}/"
PLUGIN_BUCKET: ${{ secrets.DOWNLOADS_BUCKET }}
- name: Update Homebrew formula - name: Update Homebrew formula
if: steps.prerelease.outputs.IS_PRE != 'true' 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