deploy using correct domain

This commit is contained in:
Cyryl Płotnicki 2022-08-21 12:02:43 +01:00
parent 0c858a826d
commit 4626051391
2 changed files with 9 additions and 7 deletions

View file

@ -2,15 +2,16 @@ image: nixos/latest
sources:
- https://git.sr.ht/~cyplo/blog
oauth: pages.sr.ht/PAGES:RW
secrets:
- 6c23a8c1-7a30-4a7e-b3b7-0171e898a7d3
- 47d167ed-ef43-4515-9923-6954d34a4fab
oauth: pages.sr.ht/PAGES:RW
environment:
site: blog.cyplo.dev
tasks:
- hwinfo: |
nix-shell -p lshw --run "lshw -short -quiet -sanitize -c memory -c processor"
- fetch_tools: |
cd blog
nix-shell --pure --run 'date'
@ -24,7 +25,7 @@ tasks:
cd blog
nix-shell --pure --run 'hugo --gc --minify'
- package: |
tar -C blog/public -cvz . > site.tar.gz
ls -hal site.tar.gz
- sourcehut_upload: |
acurl -i -f https://pages.sr.ht/publish/cyplo.srht.site -Fcontent=@site.tar.gz
cd blog
tar -cvz . > ../site.tar.gz
- upload: |
hut pages publish -d $site site.tar.gz

View file

@ -19,6 +19,7 @@
cacert
git
hugo
hut
];
};
});