Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jedeoric committed Oct 28, 2024
1 parent 1e46953 commit b00e4bd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ jobs:
outputs:
version: ${{ steps.job_vars.outputs.VERSION }}
repo_name: ${{ steps.job_vars.outputs.REPO_NAME }}
bpm_found: ${{ steps.bpm_upload.outputs.BPM_FOUND }}

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -197,12 +198,13 @@ jobs:
run: mv ../cc65 . && mv ../orix-software . && mv ../orix-sdk . && mv ../md2hlp .

- name: Upload if bpm
id: bpm_upload
run: |
if [ -f "bpm.tml" ]; then
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
echo "BPM_FOUND='True'" >> $GITHUB_ENV
echo "BPM_FOUND='True'" >> $GITHUB_OUTPUT
fi
upload:
Expand All @@ -215,6 +217,7 @@ jobs:
hash: ${{ secrets.HASH }}
version: ${{ needs.build.outputs.version }}
repo_name: ${{ needs.build.outputs.repo_name }}
BPM_FOUND: ${{ needs.build.outputs.bpm_found }}

steps:
- name: Get branch name
Expand Down Expand Up @@ -246,7 +249,7 @@ jobs:
- name: Upload to oric
run: |
echo BPM $BPM_FOUND # OK
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}"

0 comments on commit b00e4bd

Please sign in to comment.