keep env for publish, push to github last

This commit is contained in:
Cyryl Płotnicki 2022-08-21 12:15:44 +01:00
parent ff6f36652a
commit 1e91068cd0

View file

@ -14,16 +14,16 @@ tasks:
- fetch_tools: | - fetch_tools: |
cd blog cd blog
nix-shell --pure --run 'date' 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: | - build: |
cd blog cd blog
nix-shell --pure --run 'hugo --gc --minify' nix-shell --pure --run 'hugo --gc --minify'
- package: | - package: |
tar -C blog/public -cvz . > site.tar.gz tar -C blog/public -cvz . > site.tar.gz
- upload: | - 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'