mirror of
https://github.com/khuedoan/homelab.git
synced 2025-02-26 06:29:58 +07:00
Add deploy step for docs
This commit is contained in:
parent
f26676becf
commit
c27a50006f
@ -12,3 +12,13 @@ diagrams:
|
||||
.PHONY: book
|
||||
book:
|
||||
mdbook build .
|
||||
|
||||
.PHONY: deploy
|
||||
deploy:
|
||||
@echo "Deploying to GitHub Pages"
|
||||
git worktree add /tmp/book gh-pages
|
||||
cp -rp book/* /tmp/book/
|
||||
cd /tmp/book \
|
||||
&& git commit --all --message "Updates" || echo "No changes to commit" \
|
||||
&& git push
|
||||
git worktree remove /tmp/book
|
||||
|
Loading…
Reference in New Issue
Block a user