2019-08-21 05:42:47 +00:00
|
|
|
dist: bionic
|
|
|
|
|
|
|
|
# installing Hugo from the snap store'
|
|
|
|
# https://snapcraft.io/hugo
|
|
|
|
before_install:
|
|
|
|
- sudo apt-get update
|
|
|
|
- sudo apt-get install ruby
|
2019-08-26 03:56:44 +00:00
|
|
|
- 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
|
2019-08-21 05:42:47 +00:00
|
|
|
script:
|
|
|
|
- asciidoctor --version
|
2019-09-01 18:16:36 +00:00
|
|
|
- hugo --minify
|
2019-08-21 05:42:47 +00:00
|
|
|
deploy:
|
|
|
|
local_dir: "public/"
|
|
|
|
provider: pages
|
|
|
|
skip_cleanup: true
|
|
|
|
github_token: $GITHUB_TOKEN
|
|
|
|
target_branch: gh-pages
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
|