summaryrefslogtreecommitdiff
path: root/.gitea/workflows/release.yml
blob: f6e310951718e0b78769e96ea0e58377f2c99249 (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
27
28
29
name: Release

on:
  push:
    tags:
      - '*'

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 \
            --out-link hakurei.app-${{ github.ref_name }}.tar.zst \
            .#dist

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