forked from practicalli/clojure
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-staging
More file actions
executable file
·21 lines (13 loc) · 796 Bytes
/
deploy-staging
File metadata and controls
executable file
·21 lines (13 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
## A quick hack to deploy a generated website onto a Github repository, to be served as static content by github pages.
# This should only be run from the root of the gitbook 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-staging git@github.com:practicalli/clojure-staging.git && git push -f practicalli-staging live