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: |
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'