mirror of
https://github.com/input-output-hk/foliage.git
synced 2024-08-18 00:10:22 +03:00
Add macOS artifacts to GitHub releases
This fix https://github.com/input-output-hk/foliage/issues/62 but require https://github.com/input-output-hk/foliage/issues/47 to be addressed first!
This commit is contained in:
parent
f25603f3c6
commit
d68add56b4
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
@ -7,7 +7,11 @@ on:
|
||||
|
||||
jobs:
|
||||
build-and-release:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
@ -20,9 +24,16 @@ jobs:
|
||||
uses: cachix/install-nix-action@v20
|
||||
|
||||
- name: Build
|
||||
run: nix build .#packages.x86_64-linux.default --accept-flake-config
|
||||
run: |
|
||||
if [[ "${{ matrix.os }}" == "macos-latest" ]]; then
|
||||
nix build .#packages.x86_64-darwin.default --accept-flake-config
|
||||
else
|
||||
nix build .#packages.x86_64-linux.default --accept-flake-config
|
||||
fi
|
||||
|
||||
- name: Create Release and Upload Release Assets
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: ./result/bin/foliage
|
||||
artifacts: "result/bin/*"
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
draft: false
|
||||
|
Loading…
Reference in New Issue
Block a user