]> Nishi Git Mirror - gwion.git/commitdiff
:art: Add deploy.sh
authorfennecdjay <astor.jeremie@wanadoo.fr>
Mon, 11 Nov 2019 11:32:12 +0000 (12:32 +0100)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Mon, 11 Nov 2019 11:32:12 +0000 (12:32 +0100)
Makefile
scripts/deploy.sh [new file with mode: 0644]

index c81fd4df974dbae9107e016799165534bdc7b073..32849fd833b94dfc1ba21e28f797e8638ca2d57e 100644 (file)
--- 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 (file)
index 0000000..f3ad860
--- /dev/null
@@ -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"