Skip to content

Commit 00d2de0

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

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -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 sync 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)