Wercker build step for hugo themes
The script is based on the hugo build step by Arjen Schwarz.
How it works
- Downloads and installs hugo if it is not already installed
- Clones https://github.com/spf13/HugoBasicExample as an example website to test the theme
- The theme is put in the themes folder
hugo checkcommand is used to validate the syntax
hugocommand is used to make sure the site builds with your theme
- The script checks if you have the required files to publish your theme (README.md, images/tn.png, images/screenshot.png)
The version number consists of three numbers. A bump in the in the major version (first number) indicates breaking changes. A bump in the second number indicates new features. The third number is increased for bugfixes.
theme: the name of your theme (default: mytheme)
Docker stack example
box: samueldebruyn/hugo-build build: steps: - samueldebruyn/hugo-theme-check: theme: material-lite
Old Wercker stack example
box: wercker/default build: steps: - samueldebruyn/hugo-theme-check: theme: material-lite