Skip to content

Commit d0c7b22

Browse files
committed
chore: update workflow
Signed-off-by: Devin Buhl <[email protected]>
1 parent 1a33ae9 commit d0c7b22

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/publish.yaml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ concurrency:
2020
jobs:
2121
build:
2222
runs-on: ubuntu-latest
23-
env:
24-
# renovate: datasource=github-releases depName=gohugoio/hugo
25-
HUGO_VERSION: v0.150.0
2623
steps:
2724
- name: Checkout
2825
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -33,18 +30,17 @@ jobs:
3330
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
3431
id: pages
3532

36-
- name: Install Hugo
37-
run: |-
38-
wget -O hugo.deb https://github.com/gohugoio/hugo/releases/download/${HUGO_VERSION}/hugo_extended_${HUGO_VERSION#v}_linux-amd64.deb
39-
sudo dpkg -i hugo.deb
40-
4133
- name: Build with Hugo
34+
uses: docker://ghcr.io/gohugoio/hugo:v0.150.0
4235
env:
4336
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
4437
HUGO_ENVIRONMENT: production
4538
HUGO_BASE_URL: ${{ steps.pages.outputs.base_url }}
46-
run: |-
47-
hugo --gc --minify --baseURL "${HUGO_BASE_URL}/"
39+
with:
40+
args: >-
41+
--gc
42+
--minify
43+
--baseURL "${HUGO_BASE_URL}/"
4844
4945
- name: Upload artifact
5046
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0

0 commit comments

Comments
 (0)