keep env for publish, push to github last
This commit is contained in:
parent
ff6f36652a
commit
1e91068cd0
1 changed files with 7 additions and 7 deletions
14
.build.yml
14
.build.yml
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue