Add forgejo action
Some checks failed
/ deploy (push) Failing after 19s

This commit is contained in:
Jan Kremer 2026-03-28 13:47:03 +01:00
parent b12087238b
commit 8c37090fb8
No known key found for this signature in database
4 changed files with 30 additions and 23 deletions

View file

@ -36,6 +36,11 @@
checks = eachSystem (pkgs: {
formatting = treefmtEval.${pkgs.system}.config.build.check self;
zola = pkgs.runCommand "zola-check" { buildInputs = [ pkgs.zola ]; } ''
cp -r ${self}/. .
zola check
touch $out
'';
});
apps = eachSystem (pkgs: {
@ -52,20 +57,6 @@
${pkgs.zola}/bin/zola build --minify
'').outPath;
};
deploy = {
type = "app";
meta = {
description = "Deploy to nimbus (Oracle)";
homepage = "https://jankremer.de";
license = nixpkgs.lib.licenses.cc0;
};
program =
(pkgs.writeShellScript "deploy-website" ''
set -e
${pkgs.zola}/bin/zola build --minify
${pkgs.rsync}/bin/rsync -avP --delete public/ jan@jankremer.de:/var/www/jankremer.de/
'').outPath;
};
});
};
}