Skip to content

Commit 71618f0

Browse files
committed
chore: update workflow
Signed-off-by: Devin Buhl <[email protected]>
1 parent 5ddad4a commit 71618f0

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

.github/workflows/publish.yaml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ 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
2326
steps:
2427
- name: Checkout
2528
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -30,26 +33,18 @@ jobs:
3033
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
3134
id: pages
3235

33-
- run: |-
34-
mkdir -p ./cache && chmod 777 ./cache
35-
mkdir -p ./public && chmod 777 ./public
36-
mkdir -p ./resources && chmod 777 ./resources
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
3740
3841
- name: Build with Hugo
39-
uses: docker://ghcr.io/gohugoio/hugo:v0.150.0
4042
env:
41-
HUGO_CACHEDIR: /github/workspace/cache
43+
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
4244
HUGO_ENVIRONMENT: production
4345
HUGO_BASE_URL: ${{ steps.pages.outputs.base_url }}
44-
with:
45-
args: >-
46-
--baseURL "${HUGO_BASE_URL}/"
47-
--destination /github/workspace/public
48-
--gc
49-
--minify
50-
--noBuildLock
51-
--noChmod
52-
--noTimes
46+
run: |-
47+
hugo --gc --minify --baseURL "${HUGO_BASE_URL}/"
5348
5449
- name: Upload artifact
5550
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0

0 commit comments

Comments
 (0)