Skip to content

Commit 81eec26

Browse files
authored
Merge pull request #148 from protocolbuffers/pin-hugo-version
Pin Hugo version
2 parents da3e1e9 + 83f7fb6 commit 81eec26

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/gh-pages.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: github pages
2-
32
on:
43
push:
54
branches:
@@ -8,34 +7,27 @@ on:
87
branches:
98
- main
109
workflow_dispatch:
11-
1210
jobs:
1311
deploy:
1412
runs-on: ubuntu-22.04
1513
steps:
16-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v3
1715
with:
1816
submodules: true # Fetch Hugo themes (true OR recursive)
1917
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
2018

21-
- uses: actions/setup-node@v4
22-
with:
23-
node-version: 20
24-
2519
- name: Setup Hugo
26-
uses: peaceiris/actions-hugo@v3
20+
uses: peaceiris/actions-hugo@v2
2721
with:
28-
hugo-version: 'latest'
22+
hugo-version: 0.121.2
2923
extended: true
30-
3124
- name: Install Dependencies
3225
run: npm install autoprefixer postcss postcss-cli
33-
3426
- name: Build
3527
run: hugo --minify
3628

3729
- name: Deploy
38-
uses: peaceiris/actions-gh-pages@v4
30+
uses: peaceiris/actions-gh-pages@v3
3931
if: github.ref == 'refs/heads/main'
4032
with:
4133
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)