build
This commit is contained in:
parent
32098a3278
commit
dbbcc3aae7
1 changed files with 19 additions and 0 deletions
19
.build.yml
Normal file
19
.build.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
image: alpine/latest
|
||||
packages:
|
||||
- node
|
||||
- rsync
|
||||
secrets:
|
||||
- 0b26b413-7901-41c3-a4e2-3c752228ffcb
|
||||
sources:
|
||||
- https://git.sr.ht/~mzhang/blog
|
||||
tasks:
|
||||
- build: |
|
||||
npm install -g pnpm
|
||||
cd blog
|
||||
pnpm install
|
||||
pnpm run build
|
||||
# hugo --buildDrafts --minify --baseURL https://mzhang.io
|
||||
- upload: |
|
||||
cd blog
|
||||
echo "mzhang.io ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBzBZ+QmM4EO3Fwc1ZcvWV2IY9VF04T0H9brorGj9Udp" >> ~/.ssh/known_hosts
|
||||
rsync -azvrP dist/ sourcehutBuilds@mzhang.io:/mnt/storage/svcdata/blog-public
|
Loading…
Reference in a new issue