diff options
Diffstat (limited to '.gitea')
| -rw-r--r-- | .gitea/workflows/release.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 00000000..239816be --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,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}}' |
