api/docs/Makefile

15 lines
320 B
Makefile
Raw Normal View History

2020-04-06 22:31:47 +00:00
.PHONY: book deploy
book:
@mdbook build
deploy: book
@rm -rf /tmp/book
@git worktree remove -f /tmp/book
@git worktree add /tmp/book gh-pages
@rm -rf /tmp/book/*
@cp -rp book/* /tmp/book/
@cd /tmp/book && \
git add -A && \
git commit -m "deployed on $(shell date) by ${USER}" && \
git push origin gh-pages