Skip to content

Commit 9595ece

Browse files
committed
Update hugo
1 parent 4d2f007 commit 9595ece

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/hugo.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Deploy Hugo site to Pages
44
on:
55
# Runs on pushes targeting the default branch
66
push:
7-
branches: ["master"]
7+
branches: ["master", "main"]
88

99
# Allows you to run this workflow manually from the Actions tab
1010
workflow_dispatch:
@@ -31,7 +31,7 @@ jobs:
3131
build:
3232
runs-on: ubuntu-latest
3333
env:
34-
HUGO_VERSION: 0.114.0
34+
HUGO_VERSION: 0.128.0
3535
steps:
3636
- name: Install Hugo CLI
3737
run: |
@@ -40,25 +40,24 @@ jobs:
4040
- name: Install Dart Sass
4141
run: sudo snap install dart-sass
4242
- name: Checkout
43-
uses: actions/checkout@v3
43+
uses: actions/checkout@v4
4444
with:
4545
submodules: recursive
4646
- name: Setup Pages
4747
id: pages
48-
uses: actions/configure-pages@v3
48+
uses: actions/configure-pages@v5
4949
- name: Install Node.js dependencies
5050
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
5151
- name: Build with Hugo
5252
env:
53-
# For maximum backward compatibility with Hugo modules
53+
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
5454
HUGO_ENVIRONMENT: production
55-
HUGO_ENV: production
5655
run: |
5756
hugo \
5857
--minify \
5958
--baseURL "${{ steps.pages.outputs.base_url }}/"
6059
- name: Upload artifact
61-
uses: actions/upload-pages-artifact@v2
60+
uses: actions/upload-pages-artifact@v3
6261
with:
6362
path: ./public
6463

@@ -72,4 +71,4 @@ jobs:
7271
steps:
7372
- name: Deploy to GitHub Pages
7473
id: deployment
75-
uses: actions/deploy-pages@v2
74+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)