Add release with new binary
This commit is contained in:
parent
2b8b642778
commit
a99b2a3fa5
1 changed files with 11 additions and 0 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
|
@ -3,6 +3,7 @@ on:
|
|||
pull_request:
|
||||
push:
|
||||
branches: ["main"]
|
||||
tags: ["v*"]
|
||||
jobs:
|
||||
build:
|
||||
name: Build packages
|
||||
|
|
@ -20,3 +21,13 @@ jobs:
|
|||
- run: nix --print-build-logs build .#packages.$SYSTEM.default
|
||||
env:
|
||||
SYSTEM: ${{ matrix.system }}
|
||||
|
||||
- name: Prepare release artifact
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
run: cp result/bin/mkv mkv-${{ matrix.system }}
|
||||
|
||||
- name: Create release
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: mkv-${{ matrix.system }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue