deploy using correct domain
This commit is contained in:
parent
0c858a826d
commit
4626051391
2 changed files with 9 additions and 7 deletions
15
.build.yml
15
.build.yml
|
@ -2,15 +2,16 @@ image: nixos/latest
|
||||||
sources:
|
sources:
|
||||||
- https://git.sr.ht/~cyplo/blog
|
- https://git.sr.ht/~cyplo/blog
|
||||||
|
|
||||||
|
oauth: pages.sr.ht/PAGES:RW
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
- 6c23a8c1-7a30-4a7e-b3b7-0171e898a7d3
|
- 6c23a8c1-7a30-4a7e-b3b7-0171e898a7d3
|
||||||
- 47d167ed-ef43-4515-9923-6954d34a4fab
|
- 47d167ed-ef43-4515-9923-6954d34a4fab
|
||||||
|
|
||||||
oauth: pages.sr.ht/PAGES:RW
|
environment:
|
||||||
|
site: blog.cyplo.dev
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- hwinfo: |
|
|
||||||
nix-shell -p lshw --run "lshw -short -quiet -sanitize -c memory -c processor"
|
|
||||||
- fetch_tools: |
|
- fetch_tools: |
|
||||||
cd blog
|
cd blog
|
||||||
nix-shell --pure --run 'date'
|
nix-shell --pure --run 'date'
|
||||||
|
@ -24,7 +25,7 @@ tasks:
|
||||||
cd blog
|
cd blog
|
||||||
nix-shell --pure --run 'hugo --gc --minify'
|
nix-shell --pure --run 'hugo --gc --minify'
|
||||||
- package: |
|
- package: |
|
||||||
tar -C blog/public -cvz . > site.tar.gz
|
cd blog
|
||||||
ls -hal site.tar.gz
|
tar -cvz . > ../site.tar.gz
|
||||||
- sourcehut_upload: |
|
- upload: |
|
||||||
acurl -i -f https://pages.sr.ht/publish/cyplo.srht.site -Fcontent=@site.tar.gz
|
hut pages publish -d $site site.tar.gz
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
cacert
|
cacert
|
||||||
git
|
git
|
||||||
hugo
|
hugo
|
||||||
|
hut
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue