From e617ec3d0362ebe8dc0c264efbd2d1aaf423f6c6 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 31 Aug 2025 07:57:15 -0600 Subject: [PATCH] Use website script to tag the repo Update the `make deploy` target to tag the repo using the value returned by `website deployment next-tag`. Filter .DS_Store files from the public folder before rsyncing. This is a step the deploy script did. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 72bf627..fea5233 100644 --- a/Makefile +++ b/Makefile @@ -21,9 +21,11 @@ site: hugo --buildFuture --enableGitInfo --destination "$(BUILD_DIR)" deploy: site + @echo "Removing .DS_Store files from $(DEPLOY_LOCATION)" + find "$(BUILD_DIR)" -name .DS_Store -print -delete @echo "Deploying to $(DEPLOY_LOCATION)" rsync -avz --no-times --no-perms --delete "$(BUILD_DIR)/" "$(DEPLOY_LOCATION)" - git tag -f deploy-$(shell date +%Y-%m-%d) + git tag -f $(shell ./scripts/website deployment next-tag) deployall: nethack deploy