mirror of
https://github.com/remko/waforth
synced 2024-12-28 10:00:06 +01:00
34 lines
1,017 B
YAML
34 lines
1,017 B
YAML
name: Publish Standalone
|
|
|
|
on:
|
|
release:
|
|
types: [created]
|
|
|
|
jobs:
|
|
build:
|
|
uses: ./.github/workflows/build.yml
|
|
|
|
publish-standalone:
|
|
needs: build
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest, ubuntu-18.04]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: ./.github/actions/setup
|
|
- run: make -C src/standalone install-deps package
|
|
- run: make -C src/standalone check
|
|
- name: "Upload artifacts"
|
|
run: |
|
|
for f in src/standalone/waforth-*.tgz; do
|
|
curl --fail \
|
|
-H "Authorization: token $GITHUB_TOKEN" \
|
|
-H "Content-Type: $(file -b --mime-type $f)" \
|
|
--data-binary @$f \
|
|
"$RELEASE_ASSETS_UPLOAD_URL?name=$(basename $f)"
|
|
done
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
RELEASE_ASSETS_UPLOAD_URL: https://uploads.github.com/repos/${{ github.event.repository.full_name}}/releases/${{ github.event.release.id }}/assets
|
|
|