Releases: peaceiris/actions-hugo
Releases · peaceiris/actions-hugo
v2.2.4
- deps: Compile deps into single file with ncc (#88)
- CodeFactor
v2.2.3
Dependencies update
v2.2.2
Dependencies update
v2.2.1
Release v2.2.1
v2.2.0
Release v2.2.0
- Migrated from JavaScript action to TypeScript action
- Support macOS and Windows
v2.1.0
v2.0.0
Release v2.0.0
This action migrated to JavaScript action. We no longer build a docker image. Execution time is only 1 sec. (Docker base action was taking 1 min to build.)
New workflow example
name: github pages
on:
push:
branches:
- master
jobs:
build-deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2.0.0
with:
hugo-version: '0.58.2'
- name: Build
run: hugo --gc --minify --cleanDestinationDir
- name: Deploy
uses: peaceiris/actions-gh-pages@v2.3.1
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
Options
Hugo extended
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2.0.0
with:
hugo-version: '0.58.2'
extended: true
Hugo latest version
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2.0.0
with:
hugo-version: 'latest'
Note: This action gets a Hugo latest version by GitHub API. Please be aware of GitHub API Rate limiting
v2.0.0-rc1
Migrate to JavaScript action #20
v0.58.2
Hugo v0.58.2
v0.58.1
Hugo v0.58.1