update release workflow
All checks were successful
CI / build (push) Successful in 41s
CI / checks (push) Successful in 1m9s
CI / build-nixpkgs (push) Successful in 39s

This commit is contained in:
Robin Appelman 2025-06-17 22:32:17 +02:00
commit f18383f9f0

View file

@ -1,14 +1,14 @@
name: Release name: Release
on: on:
release: push:
types: [created] tags: ["*"]
permissions: permissions:
contents: write contents: write
jobs: jobs:
build: publish:
runs-on: nix runs-on: nix
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -16,20 +16,16 @@ jobs:
with: with:
name: link name: link
instance: https://cache.icewind.link instance: https://cache.icewind.link
authToken: "${{ secrets.ATTIC_TOKEN }}" - name: Collect assets
- run: nix build .#x86_64-unknown-linux-musl run: |
- name: Upload binary to release mkdir assets
uses: https://github.com/svenstaro/upload-release-action@v2 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: with:
repo_token: ${{ secrets.GITHUB_TOKEN }} direction: upload
file: result/bin/logsmash release-dir: assets
asset_name: logsmash-x86_64-unknown-linux-musl token: ${{ secrets.FORGEJO_TOKEN }}
tag: ${{ github.ref }}
- run: nix build .#x86_64-pc-windows-gnu
- name: Upload binary to release
uses: https://github.com/svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: result/bin/logsmash.exe
asset_name: logsmash-x86_64-pc-windows-gnu.exe
tag: ${{ github.ref }}