Skip to content

Commit bf627eb

Browse files
committed
actions update
1 parent 195c081 commit bf627eb

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/gh-pages.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,31 @@ name: github pages
33
on:
44
push:
55
branches:
6-
- main # Set a branch to deploy
6+
- main
77
pull_request:
88

99
jobs:
1010
deploy:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
with:
15-
submodules: true # Fetch Hugo themes (true OR recursive)
16-
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
15+
submodules: true
16+
fetch-depth: 0
1717

1818
- name: Setup Hugo
19-
uses: peaceiris/actions-hugo@v2
19+
uses: peaceiris/actions-hugo@v3
2020
with:
21-
hugo-version: 'latest'
21+
hugo-version: '0.152.2'
2222
extended: true
2323

2424
- name: Build
2525
run: hugo --minify
2626

2727
- name: Deploy
28-
uses: peaceiris/actions-gh-pages@v3
28+
uses: peaceiris/actions-gh-pages@v4
2929
if: github.ref == 'refs/heads/main'
3030
with:
3131
github_token: ${{ secrets.GITHUB_TOKEN }}
32-
publish_dir: ./public
32+
publish_dir: ./public
33+
publish_branch: master

0 commit comments

Comments
 (0)