Add release with new binary

This commit is contained in:
Silas Brack 2026-03-08 11:10:44 +01:00
parent 2b8b642778
commit a99b2a3fa5

View file

@ -3,6 +3,7 @@ on:
pull_request: pull_request:
push: push:
branches: ["main"] branches: ["main"]
tags: ["v*"]
jobs: jobs:
build: build:
name: Build packages name: Build packages
@ -20,3 +21,13 @@ jobs:
- run: nix --print-build-logs build .#packages.$SYSTEM.default - run: nix --print-build-logs build .#packages.$SYSTEM.default
env: env:
SYSTEM: ${{ matrix.system }} 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 }}