Skip to content

Commit 46c734b

Browse files
committed
ci: use peaceiris/actions-hugo@v3.0.0 to install hugo, since the snap store version is not published at the moment
Maybe when gohugoio/hugo#14320 is fixed, we can revert.
1 parent 0f0f103 commit 46c734b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/gh-pages.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,13 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- uses: actions/checkout@v6
29+
#- name: Install Hugo
30+
# run: sudo snap install --channel=extended/stable hugo
2931
- name: Install Hugo
30-
run: sudo snap install --channel=extended/stable hugo
32+
uses: peaceiris/actions-hugo@v3.0.0
33+
with:
34+
hugo-version: latest
35+
extended: true
3136
- name: Setup Pages
3237
id: pages
3338
uses: actions/configure-pages@v5

.github/workflows/pull-request.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ jobs:
1313
GIT_CONFIG_NOSYSTEM: "1"
1414
steps:
1515
- uses: actions/checkout@v6
16+
#- name: Install Hugo
17+
# run: sudo snap install --channel=extended/stable hugo
1618
- name: Install Hugo
17-
run: sudo snap install --channel=extended/stable hugo
19+
uses: peaceiris/actions-hugo@v3.0.0
20+
with:
21+
hugo-version: latest
22+
extended: true
1823
- name: Try to build website
1924
run: hugo

0 commit comments

Comments
 (0)