Fix a formatting error for Github Actions (#1323)

Fixed a formatting error for the yaml file and also changed all the versions to either `@latest` or just `latest`.
This commit is contained in:
Kahlil Wehmeyer
2021-02-07 23:02:14 -05:00
committed by GitHub
parent 260106669e
commit 7a95e9db57
@@ -50,9 +50,10 @@ This is a much simpler setup as your Hugo files and generated content are publis
GitHub execute your software development workflows. Everytime you push your code on the Github repository, Github Action will build the site automatically.
Create a file in `.github/workflows/gh-pages.yml` containing the following content (based on https://github.com/marketplace/actions/hugo-setup):
Create a file in `.github/workflows/gh-pages.yml` containing the following content (based on https://github.com/marketplace/actions/hugo-setup ):
`
```
name: github pages
on:
@@ -70,29 +71,25 @@ jobs:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
uses: peaceiris/actions-hugo@latest
with:
hugo-version: '0.79.1'
hugo-version: 'latest'
# extended: true
- name: Build
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@latest
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
`
Set hugo-version: `'latest'` to use the latest version of Hugo.
`
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
uses: peaceiris/actions-hugo@latest
with:
hugo-version: 'latest'
`
```
For more advance settings https://github.com/marketplace/actions/hugo-setup