release: 0.0.0
This commit is contained in:
parent
394bf00ce1
commit
04cd9b5160
26
.gitea/workflows/release.yml
Normal file
26
.gitea/workflows/release.yml
Normal 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 -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}}'
|
14
flake.nix
14
flake.nix
@ -67,17 +67,17 @@
|
||||
packages = forAllSystems (
|
||||
system:
|
||||
let
|
||||
inherit (self.packages.${system}) hakurei-static hakurei-static-web-server;
|
||||
inherit (self.packages.${system}) hakurei-static caddy-hakurei-static;
|
||||
pkgs = nixpkgsFor.${system};
|
||||
in
|
||||
{
|
||||
default = hakurei-static-web-server;
|
||||
default = caddy-hakurei-static;
|
||||
hakurei-static = pkgs.callPackage ./package.nix { };
|
||||
hakurei-static-web-server = pkgs.writeShellScriptBin "hakurei-static-web-server" ''
|
||||
exec ${pkgs.static-web-server}/bin/static-web-server \
|
||||
-g info \
|
||||
-p 49151 \
|
||||
-d ${hakurei-static}
|
||||
caddy-hakurei-static = pkgs.writeShellScriptBin "caddy-hakurei-static" ''
|
||||
exec ${pkgs.caddy}/bin/caddy \
|
||||
file-server \
|
||||
-a -l ":49151" \
|
||||
-r ${hakurei-static}
|
||||
'';
|
||||
}
|
||||
);
|
||||
|
@ -17,7 +17,7 @@
|
||||
}:
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "hakurei.app";
|
||||
version = "0.0.2";
|
||||
version = "0.0.0";
|
||||
|
||||
src = ./.;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user