Add nix app to deploy to Codeberg

This commit is contained in:
Jan Kremer 2026-02-22 21:39:52 +01:00
parent a5b107285d
commit f4afca0913
No known key found for this signature in database

View file

@ -52,6 +52,22 @@
${pkgs.hugo}/bin/hugo --minify ${pkgs.hugo}/bin/hugo --minify
'').outPath; '').outPath;
}; };
deploy = {
type = "app";
meta = {
description = "Deploy to Codeberg";
homepage = "https://kremer.codeberg.page";
license = nixpkgs.lib.licenses.cc0;
};
program =
(pkgs.writeShellScript "deploy-website" ''
set -e
${pkgs.hugo}/bin/hugo --minify
cd public
git commit --all -m "Deploy"
git push
'').outPath;
};
}); });
}; };
} }