build: Add deploy step

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2023-07-31 20:09:41 +02:00
parent f513ea6c04
commit 7f6dcd2948
Signed by: c8h4
GPG key ID: 9C82009BEEDEA0FF

View file

@ -5,6 +5,8 @@ packages:
- nixos.nodePackages.prettier
sources:
- https://git.sr.ht/~c8h4/c8h4.io
secrets:
- 8e01c227-f772-4dec-b1f5-f21657b709a0
tasks:
- lint: |
cd c8h4.io
@ -12,3 +14,7 @@ tasks:
- build: |
cd c8h4.io
hugo --minify
- deploy: |
tar -C c8h4.io/public -cvzf site.tar.gz .
set +x # do not completely clobber the output with gargabe
cat <(echo c8h4.io) <(cat site.tar.gz) | ssh -T -o StrictHostKeyChecking=no deploy@fort.c8h4.io