release: 0.0.0
All checks were successful
Static / Flake checks (push) Successful in 21s
Static / Create distribution (push) Successful in 47s
Release / Create release (push) Successful in 1m6s

This commit is contained in:
Ophestra 2025-06-27 20:48:06 +09:00
parent 394bf00ce1
commit fdcbfa6d6c
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q
3 changed files with 34 additions and 8 deletions

View File

@ -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 --zstd -cf hakurei.app-${{ github.ref_name }}.tar.zst result/
- name: Release
uses: https://gitea.com/actions/release-action@main
with:
files: |-
hakurei.app-**.tar.zst
api_key: '${{secrets.RELEASE_TOKEN}}'

View File

@ -67,17 +67,17 @@
packages = forAllSystems ( packages = forAllSystems (
system: system:
let let
inherit (self.packages.${system}) hakurei-static hakurei-static-web-server; inherit (self.packages.${system}) hakurei-static caddy-hakurei-static;
pkgs = nixpkgsFor.${system}; pkgs = nixpkgsFor.${system};
in in
{ {
default = hakurei-static-web-server; default = caddy-hakurei-static;
hakurei-static = pkgs.callPackage ./package.nix { }; hakurei-static = pkgs.callPackage ./package.nix { };
hakurei-static-web-server = pkgs.writeShellScriptBin "hakurei-static-web-server" '' caddy-hakurei-static = pkgs.writeShellScriptBin "caddy-hakurei-static" ''
exec ${pkgs.static-web-server}/bin/static-web-server \ exec ${pkgs.caddy}/bin/caddy \
-g info \ file-server \
-p 49151 \ -a -l ":49151" \
-d ${hakurei-static} -r ${hakurei-static}
''; '';
} }
); );

View File

@ -17,7 +17,7 @@
}: }:
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "hakurei.app"; pname = "hakurei.app";
version = "0.0.2"; version = "0.0.0";
src = ./.; src = ./.;