From 7a95e9db571c02ac967fef9c70cf374dcc6ae421 Mon Sep 17 00:00:00 2001 From: Kahlil Wehmeyer <7523160+kwehmeyer@users.noreply.github.com> Date: Sun, 7 Feb 2021 23:02:14 -0500 Subject: [PATCH] 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`. --- .../hosting-on-github.md | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/content/en/hosting-and-deployment/hosting-on-github.md b/content/en/hosting-and-deployment/hosting-on-github.md index 5af900a67..5c1f71ef8 100644 --- a/content/en/hosting-and-deployment/hosting-on-github.md +++ b/content/en/hosting-and-deployment/hosting-on-github.md @@ -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