From 1e91068cd056818c1f672b68c28038681071680c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 21 Aug 2022 12:15:44 +0100 Subject: [PATCH] keep env for publish, push to github last --- .build.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.build.yml b/.build.yml index 30e448b..46bce4b 100644 --- a/.build.yml +++ b/.build.yml @@ -14,16 +14,16 @@ tasks: - fetch_tools: | cd blog nix-shell --pure --run 'date' - - github_push: | - set +xv - cd blog - GITHUB_TOKEN=`cat ~/.github_token` - git remote add github https://cyplo:$GITHUB_TOKEN@github.com/cyplo/blog.git - nix-shell --pure --run 'git push github --all --force' - build: | cd blog nix-shell --pure --run 'hugo --gc --minify' - package: | tar -C blog/public -cvz . > site.tar.gz - upload: | - nix-shell --pure --keep 'site' --run 'hut pages publish -d $site site.tar.gz' + nix-shell blog/shell.nix --run 'hut pages publish -d $site site.tar.gz' + - github_push: | + set +xv + cd blog + GITHUB_TOKEN=`cat ~/.github_token` + git remote add github https://cyplo:$GITHUB_TOKEN@github.com/cyplo/blog.git + nix-shell --pure --run 'git push github --all --force'