summaryrefslogtreecommitdiff
path: root/.gitea
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-06-27 20:48:06 +0900
committerOphestra <cat@gensokyo.uk>2025-06-27 22:46:18 +0900
commit04cd9b5160f61f3082478933f34484fd73b70c3b (patch)
tree47e788a751fa6ed28e2925401e5243eeba39a1e5 /.gitea
parent394bf00ce1cfd2d6899df568c3338509d6acd490 (diff)
release: 0.0.0
Diffstat (limited to '.gitea')
-rw-r--r--.gitea/workflows/release.yml26
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}}'