From: fennecdjay Date: Mon, 11 Nov 2019 11:32:12 +0000 (+0100) Subject: :art: Add deploy.sh X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=dbf51e9418cc962b383372479046fd41c425ac94;p=gwion.git :art: Add 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"