Skip to content

Commit

Permalink
use needs instead of separate action
Browse files Browse the repository at this point in the history
  • Loading branch information
edvardm committed Apr 12, 2023
1 parent 5b6f761 commit 3b65156
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
- "*"

jobs:
publish:
name: Release binaries
build-release:
name: Build release binaries
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -52,14 +52,21 @@ jobs:
stack install --local-bin-path ${{ matrix.asset_name }}/
tar -Jcvf ${{ matrix.asset_name }}.tar.xz ${{ matrix.asset_name }}/
- name: Wait for all other workflows to succeed
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
running-workflow-name: "Release binaries"
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 16
publish:
name: Publish binaries
needs: build-release
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: demake
asset_name: demake-linux-x86_64
- os: macos-latest
artifact_name: demake
asset_name: demake-macos-x86_64_osx

steps:
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
Expand Down

0 comments on commit 3b65156

Please sign in to comment.