-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (29 loc) · 894 Bytes
/
.travis.yml
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
27
28
29
30
31
32
33
language: python
env:
global:
- ORGANIZATION="robberthalff"
- EMAIL="[email protected]"
- DEPLOYMENT_USER="traviscibot"
- SOURCE_REPO="github.com/${ORGANIZATION}/robberthalff.git"
- REPO="${ORGANIZATION}.github.io"
- FILES="./public/*"
- GH_REPO="github.com/${ORGANIZATION}/${REPO}.git"
after_success:
- MESSAGE=$(git log -1 --pretty=%B)
- git clone git://${SOURCE_REPO}
- cd ${REPO}
- rm -rf `ls | grep -v 'md$' | grep -v '.git'`
- cp -f -r ../${FILES} ./
- ls
- git remote
- git config user.email ${EMAIL}
- git config user.name ${DEPLOYMENT_USER}
- git add .
- git commit -m "${MESSAGE}"
- git push "https://${GITHUB_TOKEN}@${GH_REPO}" master --force
install:
- wget https://github.com/gohugoio/hugo/releases/download/v0.57.2/hugo_0.57.2_Linux-64bit.deb
- sudo dpkg -i hugo*.deb
- pip install Pygments
script:
- hugo -s ./