standalone: Fix packaging

This commit is contained in:
Remko Tronçon 2022-05-26 17:00:38 +02:00
parent 4eff7b3f7a
commit 7eb26f0a27

View file

@ -18,17 +18,16 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: ./.github/actions/setup - uses: ./.github/actions/setup
- run: make -C src/standalone install-deps package - run: make -C src/standalone install-deps package
- run: | - name: "Upload artifacts"
echo "$EVENT" run: |
for f in src/standalone/waforth-*.tgz; do for f in src/standalone/waforth-*.tgz; do
curl \ curl --fail \
-H "Authorization: token $GITHUB_TOKEN" \ -H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: $(file -b --mime-type $f)" \ -H "Content-Type: $(file -b --mime-type $f)" \
--data-binary @$f \ --data-binary @$f \
"https://uploads.github.com/repos/remko/waforth/releases/$RELEASE_ID/assets?name=$(basename $f)" "$RELEASE_ASSETS_UPLOAD_URL?name=$(basename $f)"
done done
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_ID: ${{ github.event.release.release_id }} RELEASE_ASSETS_UPLOAD_URL: https://uploads.github.com/repos/${{ github.event.repository.full_name}}/releases/${{ github.event.release.id }}/assets
EVENT: ${{ toJSON(github.event) }}