forked from practicalli/clojure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy-live
executable file
·22 lines (14 loc) · 887 Bytes
/
deploy-live
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
## A quick hack to deploy a generated website onto a Github repository, to be served as static content by github pages. This is an example of a very bad shell script.
# This should only be run from the root of the gitbook project
# Replace the remote Github URL to use this on a different project
# Trigger a clean and new build
gitbook build .
# Prevent Jekyll processing when pushing commits to GitHub
touch _book/.nojekyll
# Add Practicalli favicon
cp -f images/favicon_io/favicon.ico _book/gitbook/images/favicon.ico
# Add Apple touch icon
cp -f images/favicon_io/apple-touch-icon.png _book/gitbook/images/apple-touch-icon-precomposed-152.png
# Deploy new build
cd _book && git init && git add . && git commit -m "Publish new version of Practicalli Clojure book" && git remote add practicalli git@github.com:practicalli/clojure.git && git push -f practicalli live