blog/.build.yml

17 lines
462 B
YAML
Raw Normal View History

2021-11-23 07:41:57 +00:00
image: archlinux
packages:
- hugo
- rsync
2021-11-23 07:44:52 +00:00
secrets:
- 0b26b413-7901-41c3-a4e2-3c752228ffcb
2021-11-23 07:41:57 +00:00
sources:
- https://git.sr.ht/~mzhang/blog
tasks:
- build: |
cd blog
2021-12-01 19:05:52 +00:00
hugo --minify --baseURL https://mzhang.io
2021-11-23 07:44:52 +00:00
- upload: |
2021-11-23 08:01:58 +00:00
cd blog
2021-11-23 08:00:48 +00:00
echo "mzhang.io ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBzBZ+QmM4EO3Fwc1ZcvWV2IY9VF04T0H9brorGj9Udp" >> ~/.ssh/known_hosts
2021-11-23 07:59:11 +00:00
rsync -azvrP public/ sourcehutBuilds@mzhang.io:/mnt/storage/svcdata/blog-public