diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cd46691..0bec73b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -250,6 +250,9 @@ jobs: - name: Upload to oric run: | echo BPM $BPM_FOUND - 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}" - + if [ "$BPM_FOUND" != "True" ]; then + 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}" + else + echo "Skipped, already sent with bpm" + fi