-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
39 lines (34 loc) · 963 Bytes
/
.travis.yml
File metadata and controls
39 lines (34 loc) · 963 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
27
28
29
30
31
32
33
34
35
36
37
38
39
language: python
# Install the apt prerequisites
addons:
apt:
packages:
- python-pygments
# Clean and don't fail
install:
# install latest release version
- wget --debug --verbose https://github.com/gohugoio/hugo/releases/download/v0.48/hugo_0.48_Linux-64bit.deb
- sudo dpkg -i hugo*.deb
- rm -rf docs || exit 0
# Build the website
script:
- hugo
# Deploy to GitHub pages
deploy:
provider: pages # GitHub Pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
verbose: true
keep-history: true
local_dir: docs # Deploy From Only One Folder
target_branch: build # branch contains blog content
on:
branch: master
after_deploy:
- cd docs
- git init
- git add .
- git commit -m "deploy"
- git remote add -t master liveserver https://$GITHUB_TOKEN@github.com/blockfreight/bftx-docs.git
- git pull liveserver
- git push --set-upstream liveserver master --force