Last active
February 24, 2020 08:31
-
-
Save jdheyburn/073bd6d4cb9284774e7e7feee093d86f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dist: xenial | |
git: | |
depth: false | |
env: | |
global: | |
- HUGO_VERSION="0.58.3" | |
matrix: | |
secure: REDACTED | |
# Workaround for Hugo Extended 0.58.0 SASS Library | |
# before_install: | |
# # This workaround is required to avoid libstdc++ errors while running "extended" hugo with SASS support. | |
# - wget -q -O libstdc++6 http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb | |
# - sudo dpkg --force-all -i libstdc++6 | |
install: | |
- wget -q https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz | |
- tar xf hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz | |
- mv hugo ~/bin/ | |
script: | |
- hugo version | |
- hugo --gc --minify | |
- cp CNAME public/ | |
deploy: | |
provider: pages | |
skip-cleanup: true | |
github-token: "$GITHUB_TOKEN" | |
keep-history: true | |
local-dir: public | |
repo: jdheyburn/jdheyburn.github.io | |
target-branch: master | |
verbose: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment