|
8 | 8 | env: |
9 | 9 | # As defined by the Taskfile's PROJECT_NAME variable |
10 | 10 | PROJECT_NAME: arduino-create-agent |
11 | | - TARGET: "/CreateAgent/Stable" |
| 11 | + TARGET: "/CreateAgent/Stable/" |
12 | 12 | OLD_TARGET: "/CreateBridge/" # compatibility with older releases (we can't change config.ini) |
13 | 13 | VERSION_TARGET: "arduino-create-static/agent-metadata/" |
14 | 14 | AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} |
@@ -206,13 +206,13 @@ jobs: |
206 | 206 | name: ArduinoCreateAgent.app |
207 | 207 | path: ArduinoCreateAgent.app.tar |
208 | 208 |
|
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. |
210 | 210 | notarize-macos: |
211 | 211 | name: Notarize bundle |
212 | 212 | runs-on: macos-12 |
213 | 213 | env: |
214 | 214 | GON_PATH: ${{ github.workspace }}/gon |
215 | | - needs: create-macos-bundle |
| 215 | + needs: [build, create-macos-bundle] |
216 | 216 |
|
217 | 217 | steps: |
218 | 218 | - name: Download artifact |
@@ -278,6 +278,10 @@ jobs: |
278 | 278 |
|
279 | 279 | - name: Sign and notarize binary |
280 | 280 | 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' |
281 | 285 |
|
282 | 286 | - name: Upload artifact |
283 | 287 | uses: actions/upload-artifact@v3 |
|
0 commit comments