From dbf51e9418cc962b383372479046fd41c425ac94 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 11 Nov 2019 12:32:12 +0100 Subject: [PATCH] :art: Add deploy.sh --- Makefile | 8 +------- scripts/deploy.sh | 7 +++++++ 2 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 scripts/deploy.sh diff --git a/Makefile b/Makefile index c81fd4df..32849fd8 100644 --- a/Makefile +++ b/Makefile @@ -7,13 +7,7 @@ build: ensure book: build deploy: book - @git branch -r | grep gh-pages && git push origin :gh-pages || true - @git add -f book - @git commit -m "add book" - @git subtree push --prefix book origin gh-pages - @git rm -r book - @rm -rf book - @git commit -m "remove book" + @sh scripts/deploy.sh ensure: @sh scripts/ensure.sh diff --git a/scripts/deploy.sh b/scripts/deploy.sh new file mode 100644 index 00000000..f3ad8604 --- /dev/null +++ b/scripts/deploy.sh @@ -0,0 +1,7 @@ +git branch -r | grep gh-pages && git push origin :gh-pages || true +git add -f book +git commit -m "add book" +git subtree push --prefix book origin gh-pages +git rm -r book +rm -rf book +git commit -m "remove book" -- 2.43.0