diff options
author | EuAndreh <eu@euandre.org> | 2021-01-25 17:24:03 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-01-25 17:24:03 -0300 |
commit | 571f196363919c6b5dcc0c7017c432cfdfa4dc31 (patch) | |
tree | 6ee05e46003dd61390d7b4df56f30239de4a2768 /default.nix | |
parent | mv build-aux/assert-todos.sh build-aux/workflow/ (diff) | |
download | euandre.org-571f196363919c6b5dcc0c7017c432cfdfa4dc31.tar.gz euandre.org-571f196363919c6b5dcc0c7017c432cfdfa4dc31.tar.xz |
Use "make public" as the primary way of building the site
Diffstat (limited to '')
-rw-r--r-- | default.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/default.nix b/default.nix index 2655a59..76994ac 100644 --- a/default.nix +++ b/default.nix @@ -4,6 +4,7 @@ let src = pkgs.nix-gitignore.gitignoreSourcePure [ "/result*" "/_site/" + "/public/" "/.jekyll-cache/" ] ./.; utils-i18n = pkgs.callPackage ./nix/utils-i18n.nix { }; @@ -36,6 +37,8 @@ let inkscape imagemagick + pandoc + gettext perl graphviz nixfmt @@ -54,11 +57,10 @@ let }; in rec { site = drv "site" '' - export JEKYLL_ENV=production - jekyll build -d $out --trace + make public + mv public $out ''; test = drv "test" '' - export JEKYLL_ENV=production make check touch $out ''; @@ -86,7 +88,7 @@ in rec { }; publishScript = pkgs.writeShellScriptBin "publish.sh" '' set -eux - SERVER_URL='root@euandre.org' + SERVER_URL='euandre.org' REMOTE_PATH='/home/user-data/www/default/' OUT_DOCS='${site}' ${pkgs.openssh}/bin/ssh "$SERVER_URL" rm -rf "$REMOTE_PATH/*" |