chore: add Justfile for easy publishing
This commit is contained in:
parent
0618422b68
commit
e75da51a19
2 changed files with 15 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,2 +1,4 @@
|
||||||
.hugo_build.lock
|
.hugo_build.lock
|
||||||
public/
|
public/
|
||||||
|
public.tar.gz
|
||||||
|
auth.txt
|
||||||
|
|
|
||||||
13
Justfile
Normal file
13
Justfile
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
serve:
|
||||||
|
hugo serve -D
|
||||||
|
|
||||||
|
publish:
|
||||||
|
rm -f public.tar.gz
|
||||||
|
hugo build
|
||||||
|
cd public && tar czvf ../public.tar.gz *
|
||||||
|
curl \
|
||||||
|
-XPOST \
|
||||||
|
--fail \
|
||||||
|
-H @./auth.txt \
|
||||||
|
-T public.tar.gz \
|
||||||
|
https://rustybever.be/_root
|
||||||
Loading…
Add table
Add a link
Reference in a new issue