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.
This commit is contained in:
parent
a07a0d0ff2
commit
e617ec3d03
1 changed files with 3 additions and 1 deletions
4
Makefile
4
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue