Skip to content

Commit 344d80f

Browse files
committed
fix
1 parent 95b155d commit 344d80f

File tree

1 file changed

+12
-21
lines changed

1 file changed

+12
-21
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@ jobs:
196196
- name: Post compilation
197197
run: mv ../cc65 . && mv ../orix-software . && mv ../orix-sdk . && mv ../md2hlp .
198198

199+
- name: Upload if bpm
200+
run: |
201+
if [ -f "bpm.tml" ]; then
202+
if [ "$BRANCH_NAME" = "master" -o "$BRANCH_NAME" = "main" ]; then python3 ../bpm/src/bpm --force-update publish --official; else python3 --force-update ../bpm/src/bpm publish --alpha; fi
203+
fi
204+
199205
upload:
200206
needs: build
201207
runs-on: ubuntu-24.04
@@ -232,27 +238,12 @@ jobs:
232238
- name: Make archive
233239
working-directory: ${{steps.download.outputs.download-path}}
234240
run: |
235-
ls -l
236-
find . -name "bpm.tml" -exec cp {} . \;
237-
if [ -f "etc/bpm/" ]; then
238-
echo "Use bpm for archive"
239-
python3 ../bpm/src/bpm --force-update package
240-
else
241-
echo "Use tar for archive"
242-
tar -zcvf $GITHUB_WORKSPACE/$ARCHIVE_NAME *
243-
fi
241+
echo "Use tar for archive"
242+
tar -zcvf $GITHUB_WORKSPACE/$ARCHIVE_NAME *
243+
244244
245245
- name: Upload to oric
246246
run: |
247-
ls -l
248-
find . -name "bpm.tml" -exec cp {} . \;
249-
if [ -f "etc/bpm/" ]; then
250-
cp etc/bpm/* . -adpR
251-
echo "Use bpm for upload"
252-
BPM_PUBLISH_KEY = $hash
253-
bpm -V
254-
if [ "$BRANCH_NAME" = "master" -o "$BRANCH_NAME" = "main" ]; then python3 ../bpm/src/bpm --force-update publish --official; else python3 --force-update ../bpm/src/bpm publish --alpha; fi
255-
else
256-
if [ "$BRANCH_NAME" = "master" -o "$BRANCH_NAME" = "main" ]; then VERSION="$version"; else VERSION=alpha; fi
257-
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}"
258-
fi
247+
if [ "$BRANCH_NAME" = "master" -o "$BRANCH_NAME" = "main" ]; then VERSION="$version"; else VERSION=alpha; fi
248+
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}"
249+

0 commit comments

Comments
 (0)