2022-04-08 12:09:59 +00:00
|
|
|
default: ## Build the website
|
2022-04-08 12:24:33 +00:00
|
|
|
./scripts/spellcheck.sh --check
|
2022-04-08 12:09:59 +00:00
|
|
|
./scripts/zola.sh build
|
|
|
|
|
|
|
|
clean: ## Clean build assets
|
|
|
|
./scripts/zola.sh clean
|
|
|
|
|
2022-04-16 05:31:47 +00:00
|
|
|
ci-deploy: ## Deploy from CI/CD. Only call from within CI
|
2022-04-16 05:40:25 +00:00
|
|
|
@if [ "${CI}" != "woodpecker" ]; \
|
|
|
|
then echo "Only call from within CI. Will re-write your local Git configuration. To override, set export CI=woodpecker"; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
2022-04-16 05:31:47 +00:00
|
|
|
git config --global user.email "${CI_COMMIT_AUTHOR_EMAIL}"
|
|
|
|
git config --global user.name "${CI_COMMIT_AUTHOR}"
|
|
|
|
./scripts/zola.sh deploy pages public "${CI_COMMIT_AUTHOR} <${CI_COMMIT_AUTHOR_EMAIL}>"
|
2022-04-16 07:07:18 +00:00
|
|
|
./scripts/ci.sh --init "$$HOSTEA_WRITE_DEPLOY_KEY"
|
2022-04-16 05:31:47 +00:00
|
|
|
./scripts/ci.sh --deploy ${PAGES_DEPLOY_SECRET} pages
|
|
|
|
./scripts/ci.sh --clean
|
|
|
|
|
2022-04-26 11:42:53 +00:00
|
|
|
env: ## Download build dependencies and setup dev environment
|
2022-04-08 12:09:59 +00:00
|
|
|
./scripts/zola.sh install
|
|
|
|
|
|
|
|
help: ## Prints help for targets with comments
|
|
|
|
@cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
|
|
|
|
|
|
|
serve: ## Serve website during development
|
|
|
|
./scripts/zola.sh zola -- serve
|