forked from Envirometrix/PredictiveSoilMapping
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·26 lines (23 loc) · 725 Bytes
/
deploy.sh
File metadata and controls
executable file
·26 lines (23 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
set -o errexit -o nounset
BASE_REPO=$PWD
update_website() {
cd ..; mkdir gh-pages; cd gh-pages
git init
git config user.name "thengl"
git config user.email "tom.hengl@gmail.com"
git config --global push.default simple
git remote add upstream "https://$GH_TOKEN@github.com/Envirometrix/PredictiveSoilMapping.git"
git fetch upstream 2>err.txt
git checkout -f gh-pages
cp -fvr $BASE_REPO/docs/* .
# git add *.html; git add libs/; git add figures/; git add style.css; git add images/;
# git add *.json; git add main.md;
# git add *.pdf; git add *.epub
git add --all;
git commit -a -m "Updating book (${TRAVIS_BUILD_NUMBER})"
git status
git push 2>err.txt
cd ..
}
update_website