Skip to content

Commit 4e25962

Browse files
authored
Update hugo.yml
1 parent 315a71c commit 4e25962

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/hugo.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,34 +31,33 @@ jobs:
3131
build:
3232
runs-on: ubuntu-latest
3333
env:
34-
HUGO_VERSION: 0.108.0
34+
HUGO_VERSION: 0.128.0
3535
steps:
3636
- name: Install Hugo CLI
3737
run: |
3838
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
3939
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
40-
- name: Install Dart Sass Embedded
41-
run: sudo snap install dart-sass-embedded
40+
- name: Install Dart Sass
41+
run: sudo snap install dart-sass
4242
- name: Checkout
43-
uses: actions/checkout@v4.1.1
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.0.0
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.0.4
74+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)