remove travis integration

This commit is contained in:
Carl Pearson
2020-10-09 11:50:55 -06:00
parent 04acc1fce3
commit 6b65cffbc7
2 changed files with 2 additions and 30 deletions

View File

@@ -1,28 +0,0 @@
dist: xenial
install:
- wget -q https://github.com/gohugoio/hugo/releases/download/v0.65.3/hugo_extended_0.65.3_Linux-64bit.tar.gz -O hugo.tar.gz
- tar -xvf hugo.tar.gz
- mkdir -vp ~/bin
- mv -v hugo ~/bin/hugo
- export PATH="$HOME/bin:$PATH"
script:
- hugo version
- hugo
after_success: |
set -e
if [ -n "$GITHUB_TOKEN" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
cd "$TRAVIS_BUILD_DIR"
cd public
git init
git checkout -b master
git add .
git -c user.name='cwpearson' -c user.email='carl.w.pearson@gmail.com' commit -m "push from hugo-cwpearson $TRAVIS_COMMIT"
# Make sure to make the output quiet, or else the API token will leak!
# This works because the API key can replace your password.
git push -f -q https://cwpearson:$GITHUB_TOKEN@github.com/cwpearson/cwpearson.github.io master 2> /dev/null
cd "$TRAVIS_BUILD_DIR"
fi
set +e

View File

@@ -1,7 +1,5 @@
# hugo-cwpearson # hugo-cwpearson
[![Build Status](https://travis-ci.org/cwpearson/hugo-cwpearson.svg?branch=master)](https://travis-ci.org/cwpearson/hugo-cwpearson)
[![Netlify Status](https://api.netlify.com/api/v1/badges/2bfb88a9-1f6b-41c3-afc8-40fd44cc6bde/deploy-status)](https://app.netlify.com/sites/carlpearson/deploys) [![Netlify Status](https://api.netlify.com/api/v1/badges/2bfb88a9-1f6b-41c3-afc8-40fd44cc6bde/deploy-status)](https://app.netlify.com/sites/carlpearson/deploys)
## Setup ## Setup
@@ -21,6 +19,8 @@ Install
* [Hugo-extended 0.65.3](https://github.com/gohugoio/hugo/releases/tag/v0.65.3) * [Hugo-extended 0.65.3](https://github.com/gohugoio/hugo/releases/tag/v0.65.3)
* Latest extended: `snap install hugo --channel=extended` * Latest extended: `snap install hugo --channel=extended`
Automatically deploys master brach through netlify on push.
## Future ## Future
looks like gcushen/hugo-academic is now wowchemy/starter-academic. Watch for releases here? looks like gcushen/hugo-academic is now wowchemy/starter-academic. Watch for releases here?