summaryrefslogtreecommitdiff
path: root/.gitea/workflows/release.yml
blob: 239816be786877f02361da4f00a1cd9d95ad2969 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Release

on:
  push:
    tags:
      - 'v*'

jobs:
  release:
    name: Create release
    runs-on: nix
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Process static files
        run: >-
          nix build --print-out-paths --print-build-logs .#hakurei-static &&
          nix shell nixpkgs#gnutar nixpkgs#zstd --command tar -C result --zstd -cf hakurei.app-${{ github.ref_name }}.tar.zst .

      - name: Release
        uses: https://gitea.com/actions/release-action@main
        with:
          files: |-
            hakurei.app-**.tar.zst
          api_key: '${{secrets.RELEASE_TOKEN}}'