website/.travis.yml
2019-08-26 11:56:44 +08:00

22 lines
600 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://api.github.com/repos/gohugoio/hugo/releases/latest | grep "hugo_extended.*deb" | grep "browser_download_url" | cut --delimiter=":" --delimiter="\"" --fields=4 | wget -qi -
- sudo dpkg -i hugo*.deb
- sudo gem install asciidoctor
script:
- asciidoctor --version
- hugo
deploy:
local_dir: "public/"
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
target_branch: gh-pages
on:
branch: master