Change release asset action

This commit is contained in:
Remko Tronçon 2022-05-26 15:34:04 +02:00
parent 1deba1d6bd
commit 9dc7a89dab

View file

@ -18,7 +18,17 @@ 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
- uses: AButler/upload-release-assets@e940f6342206c9655b12a28a79646d3982571ad9 - run: |
with: echo "$EVENT"
files: 'src/standalone/waforth-*.tgz' for f in src/standalone/waforth-*.tgz; do
repo-token: ${{ secrets.GITHUB_TOKEN }} curl \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: $(file -b --mime-type $f)" \
--data-binary @$f \
"https://uploads.github.com/repos/remko/waforth/releases/$RELEASE_ID/assets?name=$(basename $f)"
done
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_ID: ${{ github.event.release.release_id }}
EVENT: ${{ toJSON(github.event) }}