Skip to content

Commit

Permalink
Remove old deployment approach
Browse files Browse the repository at this point in the history
  • Loading branch information
shravanrn committed Aug 30, 2023
1 parent 4a46a29 commit 09fc2fe
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
.PHONY: serve deploy
.PHONY: book serve

book:
mdbook build

serve: book
mdbook serve

deploy: book
-git worktree remove /tmp/rlbox-book-gh-pages
@echo "====> deploying to github"
git worktree add /tmp/rlbox-book-gh-pages gh-pages
mdbook build
rm -rf /tmp/rlbox-book-gh-pages/*
cp -rp book/* /tmp/rlbox-book-gh-pages/
cd /tmp/rlbox-book-gh-pages && \
git update-ref -d refs/heads/gh-pages && \
git add -A && \
git commit -m "deployed on $(shell date) by ${USER}" && \
git push --force origin gh-pages

0 comments on commit 09fc2fe

Please sign in to comment.