sourcehut publish
This commit is contained in:
parent
e1cb9b5e0f
commit
4dafc1b3e8
1 changed files with 10 additions and 3 deletions
13
.build.yml
13
.build.yml
|
@ -1,7 +1,11 @@
|
||||||
image: alpine/latest
|
image: alpine/latest
|
||||||
|
oauth: pages.sr.ht/PAGES:RW
|
||||||
packages:
|
packages:
|
||||||
|
- hut
|
||||||
- npm
|
- npm
|
||||||
- rsync
|
- rsync
|
||||||
|
environment:
|
||||||
|
site: mzhang.srht.site
|
||||||
secrets:
|
secrets:
|
||||||
- 0b26b413-7901-41c3-a4e2-3c752228ffcb
|
- 0b26b413-7901-41c3-a4e2-3c752228ffcb
|
||||||
sources:
|
sources:
|
||||||
|
@ -15,6 +19,9 @@ tasks:
|
||||||
pnpm run build
|
pnpm run build
|
||||||
# hugo --buildDrafts --minify --baseURL https://mzhang.io
|
# hugo --buildDrafts --minify --baseURL https://mzhang.io
|
||||||
- upload: |
|
- upload: |
|
||||||
cd blog
|
cd blog/dist
|
||||||
echo "mzhang.io ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBzBZ+QmM4EO3Fwc1ZcvWV2IY9VF04T0H9brorGj9Udp" >> ~/.ssh/known_hosts
|
tar -cvz . > ../site.tar.gz
|
||||||
rsync -azvrP dist/ sourcehutBuilds@mzhang.io:/mnt/storage/svcdata/blog-public
|
cd ..
|
||||||
|
hut pages publish -d $site site.tar.gz
|
||||||
|
# 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