Skip to content

Commit 4dee3f6

Browse files
committed
update hugo
1 parent 826605c commit 4dee3f6

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/github-actions.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ on:
44
push:
55
branches: ["master"]
66
workflow_dispatch:
7-
# manual run
8-
inputs:
9-
hugoVersion:
10-
description: "Hugo Version"
11-
required: false
12-
default: "0.112.4"
137

148
# Allow one concurrent deployment
159
concurrency:
@@ -31,17 +25,18 @@ jobs:
3125
# Build job
3226
build:
3327
runs-on: ubuntu-latest
34-
env:
35-
HUGO_VERSION: ${{ github.event.inputs.hugoVersion || '0.125.7' }}
3628
steps:
37-
- name: Install Hugo CLI
38-
run: |
39-
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-amd64.deb \
40-
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
4129
- name: Checkout
4230
uses: actions/checkout@v3
4331
with:
4432
submodules: recursive
33+
34+
- name: Setup Hugo (latest)
35+
uses: peaceiris/actions-hugo@v2
36+
with:
37+
hugo-version: 'latest' # Auto get the latest hugo
38+
extended: true
39+
4540
- name: Setup Pages
4641
id: pages
4742
uses: actions/configure-pages@v3

0 commit comments

Comments
 (0)