Skip to content

Commit

Permalink
Upload artifacts to github not update server
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Aug 4, 2024
1 parent 565f0cd commit eb58574
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,17 @@ jobs:
mv build/app/firmware.uf2 artifacts/vgm-rp2040-firmware-${SUFFIX}.uf2;
mv build/app/firmware.elf.map artifacts/vgm-rp2040-firmware-${SUFFIX}.map;
- name: 'Upload artifacts to update server'
if: ${{ !github.event.pull_request.head.repo.fork }}
run: |
FILES=$(for CUR in $(ls artifacts/); do echo "-F files=@artifacts/$CUR"; done)
curl --fail -L -H "Token: ${{ secrets.INDEXER_TOKEN }}" \
-F "branch=${BRANCH_NAME}" \
${FILES[@]} \
"${{ secrets.INDEXER_URL }}"/vgm-firmware/uploadfiles;
- name: "Upload artifacts to GitHub"
uses: actions/upload-artifact@v3
with:
path: |
artifacts/
# - name: 'Upload artifacts to update server'
# if: ${{ !github.event.pull_request.head.repo.fork }}
# run: |
# FILES=$(for CUR in $(ls artifacts/); do echo "-F files=@artifacts/$CUR"; done)
# curl --fail -L -H "Token: ${{ secrets.INDEXER_TOKEN }}" \
# -F "branch=${BRANCH_NAME}" \
# ${FILES[@]} \
# "${{ secrets.INDEXER_URL }}"/vgm-firmware/uploadfiles;

0 comments on commit eb58574

Please sign in to comment.