~alterae/alterae.srht.site

ed8fbdac02ea0bf0d0ff60afdca92ddca801b2ba — Michelle S 2 years ago c880e31
Refactor to use password manager
1 files changed, 2 insertions(+), 3 deletions(-)

M justfile
M justfile => justfile +2 -3
@@ 7,11 7,10 @@ tarball: build
	tar -C public -cvz . > site.tar.gz

# Publish the site to `alterae.srht.site`.
# TODO: refactor to use hut cli
publish: tarball
	@# not very secure, requires that i remember to keep the token file in my 
	@# home dir
	curl \
		--oauth2-bearer $(cat ~/.srht-token) \
		--oauth2-bearer $(pass sourcehut/token) \
		-Fcontent=@site.tar.gz https://pages.sr.ht/publish/alterae.srht.site

# Remove all build artifacts.