docs: Add peaceiris/actions-hugo@v2.0.0
This commit is contained in:
parent
087a904156
commit
e46ccd0122
17
README.md
17
README.md
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue