-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
26 lines (21 loc) · 967 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
language: cpp
os:
- linux
- windows
install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then wget -O /tmp/hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.55.5/hugo_0.55.5_Linux-64bit.deb; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo dpkg -i /tmp/hugo.deb ; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then curl -L -o /tmp/hugo.zip https://github.com/gohugoio/hugo/releases/download/v0.55.5/hugo_0.55.5_Windows-64bit.zip; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then pushd /tmp; unzip hugo.zip; popd; export PATH=$PATH:/tmp; ls -l /tmp ; fi
script:
- hugo
- ls -l public/index.html # make sure there's a landing page
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
on:
branch: master
condition: $TRAVIS_OS_NAME = linux
local_dir: public
target_branch: gh-pages