website/.travis.yml
2019-08-14 20:21:26 +08:00

23 lines
557 B
YAML

dist: bionic
# installing Hugo from the snap store'
# https://snapcraft.io/hugo
before_install:
- sudo apt-get update
- sudo apt-get install ruby
- curl https://github.com/gohugoio/hugo/releases/download/v0.57.0/hugo_0.57.0_Linux-64bit.deb
- sudo dpkg -i hugo_0.57.0_Linux-64bit.deb
script:
- which asciidoctor
- export PATH=$PATH:$(which asciidoctor)
- asciidoctor --version
- hugo
deploy:
local_dir: "public/"
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
target_branch: gh-pages
on:
branch: master