-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpush.sh
More file actions
22 lines (18 loc) · 541 Bytes
/
Copy pathpush.sh
File metadata and controls
22 lines (18 loc) · 541 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
setup_git() {
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Travis CI BOT"
}
# add page with CAD Models thumbnails
commit_website_files() {
git checkout -b gh-pages
git add . *.html
git commit --message "Travis build: $TRAVIS_BUILD_NUMBER"
}
upload_files() {
git remote add origin-pages https://${GH_TOKEN}@github.com/antonymarion/inverseCSG/resources.git > /dev/null 2>&1
git push --quiet --set-upstream origin-pages gh-pages
}
setup_git
commit_website_files
upload_files