logsmash/.forgejo/workflows/release.yml
Robin Appelman f18383f9f0
All checks were successful
CI / build (push) Successful in 41s
CI / checks (push) Successful in 1m9s
CI / build-nixpkgs (push) Successful in 39s
update release workflow
2025-06-17 22:32:18 +02:00

31 lines
758 B
YAML

name: Release
on:
push:
tags: ["*"]
permissions:
contents: write
jobs:
publish:
runs-on: nix
steps:
- uses: actions/checkout@v4
- uses: https://codeberg.org/icewind/attic-action@v1
with:
name: link
instance: https://cache.icewind.link
- name: Collect assets
run: |
mkdir assets
nix build .#x86_64-unknown-linux-musl
cp result/bin/logsmash assets/
nix build .#x86_64-pc-windows-gnu
cp result/bin/logsmash.exe assets/
- name: Create release
uses: https://code.forgejo.org/actions/forgejo-release@v2.6.0
with:
direction: upload
release-dir: assets
token: ${{ secrets.FORGEJO_TOKEN }}