mirror of
https://github.com/remko/waforth
synced 2024-12-27 09:59:29 +01:00
standalone: Fix packaging
This commit is contained in:
parent
4eff7b3f7a
commit
7eb26f0a27
1 changed files with 5 additions and 6 deletions
11
.github/workflows/publish-standalone.yml
vendored
11
.github/workflows/publish-standalone.yml
vendored
|
@ -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) }}
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue