diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 00000000..2b7679eb --- /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 .#dist && + tar --zstd -cf hakurei.app-$GITHUB_REF.tar.zst + + - name: Release + uses: https://gitea.com/actions/release-action@main + with: + files: |- + hakurei.app-**.tar.zst + api_key: '${{secrets.RELEASE_TOKEN}}' diff --git a/package.nix b/package.nix index 08510aa7..040cad61 100644 --- a/package.nix +++ b/package.nix @@ -17,7 +17,7 @@ }: stdenvNoCC.mkDerivation rec { pname = "hakurei.app"; - version = "0.0.2"; + version = "0.0.0"; src = ./.;