docs: Add peaceiris/actions-hugo@v2.0.0

This commit is contained in:
peaceiris 2019-09-16 08:40:04 +09:00
parent 087a904156
commit e46ccd0122
1 changed files with 9 additions and 8 deletions

View File

@ -65,6 +65,11 @@ Next, Go to **Repository Settings**
An example workflow for Hugo.
- [peaceiris/actions-hugo: GitHub Actions for Hugo](https://github.com/peaceiris/actions-hugo)
[![peaceiris/actions-hugo - GitHub](https://gh-card.dev/repos/peaceiris/actions-hugo.svg?fullname)](https://github.com/peaceiris/actions-hugo)
![peaceiris/actions-hugo latest version](https://img.shields.io/github/release/peaceiris/actions-hugo.svg?label=peaceiris%2Factions-hugo)
![peaceiris/actions-gh-pages latest version](https://img.shields.io/github/release/peaceiris/actions-gh-pages.svg?label=peaceiris%2Factions-gh-pages)
```yaml
@ -81,14 +86,10 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Install Hugo
env:
HUGO_VERSION: '0.58.2'
run: |
mkdir /tmp/hugo && cd /tmp/hugo
curl -L https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-64bit.tar.gz | \
tar -xz && \
sudo mv ./hugo /usr/local/bin/
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2.0.0
with:
hugo-version: '0.58.2'
- name: Build
run: hugo --gc --minify --cleanDestinationDir