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.
|
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)
|
![peaceiris/actions-gh-pages latest version](https://img.shields.io/github/release/peaceiris/actions-gh-pages.svg?label=peaceiris%2Factions-gh-pages)
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
@ -81,14 +86,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
|
|
||||||
- name: Install Hugo
|
- name: Setup Hugo
|
||||||
env:
|
uses: peaceiris/actions-hugo@v2.0.0
|
||||||
HUGO_VERSION: '0.58.2'
|
with:
|
||||||
run: |
|
hugo-version: '0.58.2'
|
||||||
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: Build
|
- name: Build
|
||||||
run: hugo --gc --minify --cleanDestinationDir
|
run: hugo --gc --minify --cleanDestinationDir
|
||||||
|
|
Loading…
Reference in New Issue