Skip to content

Commit 7ef821f

Browse files
committed
add upload of the notarized bundle to s3 download bucket
1 parent 0f5250a commit 7ef821f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/release.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
env:
99
# As defined by the Taskfile's PROJECT_NAME variable
1010
PROJECT_NAME: arduino-create-agent
11-
TARGET: "/CreateAgent/Stable"
11+
TARGET: "/CreateAgent/Stable/"
1212
OLD_TARGET: "/CreateBridge/" # compatibility with older releases (we can't change config.ini)
1313
VERSION_TARGET: "arduino-create-static/agent-metadata/"
1414
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
@@ -206,13 +206,13 @@ jobs:
206206
name: ArduinoCreateAgent.app
207207
path: ArduinoCreateAgent.app.tar
208208

209-
# The notarize-macos job will download the macos bundle from the previous job, sign, notarize and re-upload it.
209+
# The notarize-macos job will download the macos bundle from the previous job, sign, notarize and re-upload it, uploading it also on s3 download servers for the autoupdate.
210210
notarize-macos:
211211
name: Notarize bundle
212212
runs-on: macos-12
213213
env:
214214
GON_PATH: ${{ github.workspace }}/gon
215-
needs: create-macos-bundle
215+
needs: [build, create-macos-bundle]
216216

217217
steps:
218218
- name: Download artifact
@@ -278,6 +278,10 @@ jobs:
278278
279279
- name: Sign and notarize binary
280280
run: gon -log-level=debug -log-json "${{ env.GON_CONFIG_PATH }}"
281+
282+
- name: Upload autoupdate bundle to Arduino downloads servers
283+
run: aws s3 cp ArduinoCreateAgent.app_notarized.zip s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.TARGET }}
284+
if: ${{ needs.build.outputs.prerelease }} != 'true'
281285

282286
- name: Upload artifact
283287
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)