From 97265da2702631f8ee0d831b433081396f385ba2 Mon Sep 17 00:00:00 2001 From: jede Date: Mon, 28 Oct 2024 20:52:21 +0100 Subject: [PATCH] test --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2655ea7..9382b2d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -202,11 +202,13 @@ jobs: export BPM_PUBLISH_KEY=$hash export PATH=$PATH:../bpm/src/:${GITHUB_WORKSPACE}/../cc65/bin if [ "$BRANCH_NAME" = "master" -o "$BRANCH_NAME" = "main" ]; then bpm --force-update -V;--force-update publish --official; else bpm publish --alpha; fi - fi + echo "BPM_FOUND=True" >> $GITHUB_ENV + fi upload: needs: build runs-on: ubuntu-24.04 + if: env.BPM_FOUND != True defaults: run: shell: bash @@ -243,9 +245,9 @@ jobs: echo "Use tar for archive" tar -zcvf $GITHUB_WORKSPACE/$ARCHIVE_NAME * - - name: Upload to oric run: | + if BPM_FOUND=True" if [ "$BRANCH_NAME" = "master" -o "$BRANCH_NAME" = "main" ]; then VERSION="$version"; else VERSION=alpha; fi curl -X POST --data-binary "@${ARCHIVE_NAME}" "https://cdn.oric.org/publish.php?hash=$hash&path=/home/oricoujr/www/ftp/orix/dists/$VERSION/tgz/6502/${ARCHIVE_NAME}"