blog/.build.yml

16 lines
448 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-11-23 07:53:51 +00:00
hugo --baseURL https://mzhang.io
2021-11-23 07:44:52 +00:00
- upload: |
2021-11-23 07:59:11 +00:00
echo "happysky.mzhang.io ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBzBZ+QmM4EO3Fwc1ZcvWV2IY9VF04T0H9brorGj9Udp" >> ~/.ssh/known_hosts
rsync -azvrP public/ sourcehutBuilds@mzhang.io:/mnt/storage/svcdata/blog-public