Skip to content

Commit dc9c7f6

Browse files
committed
CI: skip S3 upload for dev builds; bump AtariST toolkit to v1.3.0
- release.yml: resolve the effective APP_UUID into GITHUB_ENV and gate the "Upload artifacts to S3" step on it, so development builds (the dev UUID, used when no APP_UUID secret is set) are not published to S3. The GitHub Release upload is unaffected. - build.yml / release.yml: bump the AtariST toolkit installer from v1.0.0 to v1.3.0.
1 parent c6317fa commit dc9c7f6

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
sudo DEBIAN_FRONTEND=noninteractive apt install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential libstdc++-arm-none-eabi-newlib
2929
3030
- name: Install AtariST Toolkit Docker image
31-
run: curl -sL https://github.com/sidecartridge/atarist-toolkit-docker/releases/download/v1.0.0/install_atarist_toolkit_docker.sh | bash
31+
run: curl -sL https://github.com/sidecartridge/atarist-toolkit-docker/releases/download/v1.3.0/install_atarist_toolkit_docker.sh | bash
3232

3333
- name: Run - remove interactive
3434
run: sed -i 's/-it//' /usr/local/bin/stcmd

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
sudo DEBIAN_FRONTEND=noninteractive apt install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential libstdc++-arm-none-eabi-newlib
3333
3434
- name: Install AtariST Toolkit Docker image
35-
run: curl -sL https://github.com/sidecartridge/atarist-toolkit-docker/releases/download/v1.0.0/install_atarist_toolkit_docker.sh | bash
35+
run: curl -sL https://github.com/sidecartridge/atarist-toolkit-docker/releases/download/v1.3.0/install_atarist_toolkit_docker.sh | bash
3636

3737
- name: Run - remove interactive
3838
run: sed -i 's/-it//' /usr/local/bin/stcmd
@@ -41,10 +41,13 @@ jobs:
4141
run: |
4242
pip install boto3
4343
44-
- name: Run - Build PICO_W release version
44+
- name: Resolve APP_UUID (falls back to the dev UUID when no secret is set)
4545
env:
46-
APP_UUID: ${{ secrets.APP_UUID }}
47-
run: ./build.sh pico_w Release ${APP_UUID:-44444444-4444-4444-8444-444444444444}
46+
APP_UUID_SECRET: ${{ secrets.APP_UUID }}
47+
run: echo "APP_UUID=${APP_UUID_SECRET:-44444444-4444-4444-8444-444444444444}" >> "$GITHUB_ENV"
48+
49+
- name: Run - Build PICO_W release version
50+
run: ./build.sh pico_w Release "$APP_UUID"
4851

4952
- name: Get current date
5053
id: build
@@ -85,6 +88,9 @@ jobs:
8588
make_latest: true
8689

8790
- name: Upload artifacts to S3
91+
# Skip S3 publishing for development builds (the dev UUID). A real
92+
# release sets the APP_UUID secret to the app's own UUID.
93+
if: env.APP_UUID != '44444444-4444-4444-8444-444444444444'
8894
env:
8995
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
9096
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)