Skip to content

Commit 6aa8183

Browse files
authored
agent-version.json is pushed on downloads bucket now, and minor enhancements (#896)
* drop old target, this should not be used anymore * fix typo * bump installbuilder * bump gon * add push to downloads bucket, VERSION_TARGET will be disabled
1 parent bf62053 commit 6aa8183

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/release.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ env:
99
# As defined by the Taskfile's PROJECT_NAME variable
1010
PROJECT_NAME: arduino-create-agent
1111
TARGET: "/CreateAgent/Stable/"
12-
OLD_TARGET: "/CreateBridge/" # compatibility with older releases (we can't change config.ini)
1312
VERSION_TARGET: "arduino-create-static/agent-metadata/"
1413
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
1514
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@@ -139,7 +138,6 @@ jobs:
139138
- name: Upload autoupdate files to Arduino downloads servers
140139
run: |
141140
aws s3 sync public/ s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.TARGET }}
142-
aws s3 sync public/ s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.OLD_TARGET }}
143141
if: steps.prerelease.outputs.IS_PRE != 'true'
144142

145143
- name: Upload artifacts
@@ -224,7 +222,7 @@ jobs:
224222
notarize-macos:
225223
name: Notarize bundle
226224

227-
# for not they are exaclty the same
225+
# for now they are exaclty the same
228226
strategy:
229227
matrix:
230228
arch: [amd64, arm64]
@@ -356,7 +354,7 @@ jobs:
356354

357355
env:
358356
# vars used by installbuilder
359-
INSTALLBUILDER_PATH: "/opt/installbuilder-23.7.0/bin/builder"
357+
INSTALLBUILDER_PATH: "/opt/installbuilder-23.11.0/bin/builder"
360358
INSTALLER_VARS: "project.outputDirectory=$PWD project.version=${GITHUB_REF##*/} workspace=$PWD realname=Arduino_Create_Agent"
361359
# installbuilder will read this vars automatically (defined in installer.xml):
362360
INSTALLER_CERT_WINDOWS_PASSWORD: ${{ secrets.INSTALLER_CERT_WINDOWS_PASSWORD }}
@@ -385,7 +383,7 @@ jobs:
385383
installer-extension: .exe
386384

387385
container:
388-
image: floydpink/ubuntu-install-builder:23.7.0
386+
image: floydpink/ubuntu-install-builder:23.11.0
389387

390388
steps:
391389
- name: Checkout
@@ -498,7 +496,7 @@ jobs:
498496
499497
- name: Install gon for code signing and app notarization
500498
run: |
501-
wget -q https://github.com/Bearer/gon/releases/download/v0.0.27/gon_macos.zip
499+
wget -q https://github.com/Bearer/gon/releases/download/v0.0.36/gon_macos.zip
502500
unzip gon_macos.zip -d /usr/local/bin
503501
504502
- name: Write gon config to file
@@ -612,5 +610,7 @@ jobs:
612610
- name: Update version file (used by frontend to trigger autoupdate and create filename)
613611
run: |
614612
echo {\"Version\": \"${GITHUB_REF##*/}\"} > /tmp/agent-version.json
613+
# TODO remove this when we will have a new frontend
615614
aws s3 cp /tmp/agent-version.json s3://${{ env.VERSION_TARGET }}
615+
aws s3 cp /tmp/agent-version.json s3://${{ secrets.DOWNLOADS_BUCKET }}/agent-metadata/
616616
if: ${{ needs.build.outputs.prerelease != 'true' }}

0 commit comments

Comments
 (0)