diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..dcd4d74 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +# Eryn Wells + +DEPLOY_USER=eryn +DEPLOY_HOSTNAME=nutmeg.erynwells.me +DEPLOY_PATH=/srv/www/nutmeg.erynwells.me/html/sandbox +DEPLOY_LOCATION=$(DEPLOY_USER)@$(DEPLOY_HOSTNAME):$(DEPLOY_PATH) + +HOSTNAME=$(shell hostname -s) + +.PHONY: site deploy clean + +site: + @echo "Building site" + hugo -D + +deploy: site + @echo "Deploying to $(DEPLOY_LOCATION)" + rsync -avz --no-times --no-perms --delete public/ $(DEPLOY_LOCATION) + git tag -f deploy-$(shell date +%Y-%m-%d) + +clean: + rm -rf public/ diff --git a/hugo.yaml b/hugo.yaml index cdc35de..d5c2850 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -1,6 +1,6 @@ -baseURL: https://example.org/ +baseURL: "https://nutmeg.erynwells.me/sandbox" languageCode: en-us -title: Test Site +title: Eryn Wells theme: - blog