From 8233bcdaa1a80bc35b9028e28e0910f0b12e4401 Mon Sep 17 00:00:00 2001 From: "Nabeel S." <99736+nabeelio@users.noreply.github.com> Date: Thu, 12 Nov 2026 15:43:50 -0600 Subject: [PATCH] ci: publish main merges to main.zip instead of stable.zip stable.zip now changes only on a release tag. A merge to main uploads main.zip, so a Replane channel can point at unreleased scripts. --- .github/workflows/distribute.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/distribute.yml b/.github/workflows/distribute.yml index a374d26..77f6a02 100644 --- a/.github/workflows/distribute.yml +++ b/.github/workflows/distribute.yml @@ -113,7 +113,16 @@ jobs: # AWS CLI v2.23+ sends checksum headers many S3-compatible stores reject AWS_REQUEST_CHECKSUM_CALCULATION: when_required run: | - aws s3 cp stable.zip s3://acars/scripts/v8/stable.zip \ + # A merge to main publishes main.zip, which Replane can point a channel at to + # test unreleased scripts. Only a release tag replaces stable.zip, the file + # every client gets by default. + if [[ "$GITHUB_REF" == refs/tags/v* ]]; then + ZIP_NAME="stable.zip" + else + ZIP_NAME="main.zip" + fi + + aws s3 cp stable.zip "s3://acars/scripts/v8/${ZIP_NAME}" \ --endpoint-url https://ny-s3.storage.bunnycdn.com # Aircraft configs publish on their own rather than inside the zip: the