Skip to content

Commit

Permalink
Update the workflow of hugo
Browse files Browse the repository at this point in the history
  • Loading branch information
WillemJiang committed Sep 1, 2023
1 parent f0c996d commit dbcfa32
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ jobs:
with:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- uses: actions/cache@v2
with:
path: /tmp/hugo_cache
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-hugomod-
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
Expand All @@ -38,6 +45,6 @@ jobs:

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit dbcfa32

Please sign in to comment.