Skip to content

Commit

Permalink
github: Fix publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
remko committed Nov 11, 2023
1 parent c973477 commit 12fbc74
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,12 @@ on:
types: [created]

jobs:
build:
uses: ./.github/workflows/build.yml

build-cli:
uses: ./.github/workflows/build-cli.yml

publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- run: make
- run: make all lint test
- name: "Upload artifacts"
run: |
for f in `find dist -name 'uxn-wasm.*'`; do
Expand All @@ -33,15 +26,17 @@ jobs:
shell: bash

publish-cli:
needs: build-cli
runs-on: [macos-latest, ubuntu-latest]
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- run: make -C src/cli package
- run: make -C src/cli package test
- name: "Upload artifacts"
run: |
for f in `find dist -name 'uxn-wasm-cli.*'`; do
for f in `find dist -name 'uxn-wasm-cli-*'`; do
curl --fail \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: $(file -b --mime-type $f)" \
Expand Down

0 comments on commit 12fbc74

Please sign in to comment.