From f912ea1cc6b53b7b84da1e305c1ee40d24da3a08 Mon Sep 17 00:00:00 2001 From: Simon Perdrisat Date: Fri, 12 Feb 2021 01:30:08 +0100 Subject: [PATCH] Fix the github workflow (#1332) --- content/en/hosting-and-deployment/hosting-on-github.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/content/en/hosting-and-deployment/hosting-on-github.md b/content/en/hosting-and-deployment/hosting-on-github.md index a7cb34a75..9cabdd938 100644 --- a/content/en/hosting-and-deployment/hosting-on-github.md +++ b/content/en/hosting-and-deployment/hosting-on-github.md @@ -67,7 +67,7 @@ jobs: fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - name: Setup Hugo - uses: peaceiris/actions-hugo@latest + uses: peaceiris/actions-hugo@v2 with: hugo-version: 'latest' # extended: true @@ -76,15 +76,10 @@ jobs: run: hugo --minify - name: Deploy - uses: peaceiris/actions-gh-pages@latest + uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./public - -- name: Setup Hugo - uses: peaceiris/actions-hugo@latest - with: - hugo-version: 'latest' ``` For more advance settings https://github.com/marketplace/actions/hugo-setup