2022-06-25 08:47:06 +01:00
|
|
|
image: nixos/latest
|
|
|
|
sources:
|
|
|
|
- https://git.sr.ht/~cyplo/blog
|
|
|
|
|
|
|
|
secrets:
|
|
|
|
- 6c23a8c1-7a30-4a7e-b3b7-0171e898a7d3
|
|
|
|
- 47d167ed-ef43-4515-9923-6954d34a4fab
|
|
|
|
|
|
|
|
oauth: pages.sr.ht/PAGES:RW
|
|
|
|
|
|
|
|
tasks:
|
2022-08-21 09:47:47 +01:00
|
|
|
- hwinfo: |
|
|
|
|
nix-shell -p lshw --run "lshw -short -quiet -sanitize -c memory -c processor"
|
2022-06-25 08:47:06 +01:00
|
|
|
- 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: |
|
2022-08-21 10:56:08 +01:00
|
|
|
tar -C blog/public -cvz . > site.tar.gz
|
2022-06-25 08:47:06 +01:00
|
|
|
ls -hal site.tar.gz
|
|
|
|
- sourcehut_upload: |
|
2022-08-21 11:17:16 +01:00
|
|
|
acurl -i -f https://pages.sr.ht/publish/cyplo.srht.site -Fcontent=@site.tar.gz
|
2022-08-21 10:48:00 +01:00
|
|
|
- netlify_publish: |
|
|
|
|
set +xv
|
|
|
|
cd blog
|
|
|
|
export NETLIFY_TOKEN=`cat ~/.netlify_token`
|
|
|
|
nix-shell --pure --keep NETLIFY_TOKEN --run 'netlify-deployer master 7a0944f0-cfd0-424b-8252-ca44fc950350 public'
|