Skip to content

Commit

Permalink
[skip-changelog] fix release CI (#2546)
Browse files Browse the repository at this point in the history
* put permission under correct job only

* replace docker plugin with plain s3 command-line
  • Loading branch information
umbynos authored Feb 20, 2024
1 parent 56691a8 commit 65fb6e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/publish-go-nightly-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/release-go-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 65fb6e5

Please sign in to comment.