1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-10 00:12:09 +00:00

CI: deploy onion site

This commit is contained in:
Rohan Kumar 2021-06-15 13:15:09 -07:00
parent 99e402f133
commit f4a07c96a8
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 3 additions and 2 deletions

View file

@ -25,5 +25,6 @@ tasks:
export PATH=~/bin:$PATH
make clean deploy
cp mentions.json ~/mentions.json
make WWW_ROOT=/var/www/seirdy.onion HUGO_BASEURL='http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion/' clean deploy-html
artifacts:
- mentions.json

View file

@ -84,7 +84,7 @@ mentions.json: hugo
rm mentions.json.unfiltered
.PHONY: deploy-html
deploy-html: build mentions.json
deploy-html: build
rsync $(RSYNCFLAGS) --exclude 'gemini' --exclude '*.gmi' --exclude-from .rsyncignore $(OUTPUT_DIR)/ $(WWW_RSYNC_DEST) --delete
.PHONY: deploy-gemini
@ -93,7 +93,7 @@ deploy-gemini: hugo
rsync $(RSYNCFLAGS) $(OUTPUT_DIR)/posts/gemini.xml $(GEMINI_RSYNC_DEST)/feed.xml
.PHONY: deploy
deploy: deploy-html deploy-gemini
deploy: deploy-html mentions.json deploy-gemini
## stuff for the staging server
.PHONY: test-staging