Travis continuous delivery - Hugo - Only for testing purpose
Switch branches/tags
Nothing to show
Clone or download
Latest commit 65e9699 Jun 12, 2018

readme.md

Travis continuous delivery

Build Status

This project explains how to manipulate a Git repository within Travis CI to publish a static site build with Hugo on GitHub Page.

Use the TravisCI primitive to deploy GH Pages.

GitHub token

Get a Personal Access Token.

Only enable public_repo access for public repositories, repo for private.

You must defined environment variable via Travis:

  • GITHUB_TOKEN: GitHub token

Skip Build

Commit message

Travis automatically skips the build if the commit contains [ci skip].

Example:

git commit -m 'My commit message [ci skip]'

Scaffolding

Install Hugo

git init travis-continuous-delivery-hugo-publish
cd travis-continuous-delivery-hugo-publish

cd ..
hugo new site travis-continuous-delivery-hugo-publish --force

cd travis-continuous-delivery-hugo-publish

hugo new post/first-post.md
echo 'Some text.' >> content/post/first-post.md