Skip to content

Commit b1a9570

Browse files
authored
Merge pull request #8 from PygmalionAI/ci/update-workflow
ci: update github workflow
2 parents a8c244b + 3647b72 commit b1a9570

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/hugo.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,26 @@ jobs:
4141
- name: Install Dart Sass
4242
run: sudo snap install dart-sass
4343
- name: Checkout
44-
uses: actions/checkout@v3
44+
uses: actions/checkout@v4
4545
with:
4646
submodules: recursive
4747
fetch-depth: 0
4848
- name: Setup Pages
4949
id: pages
50-
uses: actions/configure-pages@v3
50+
uses: actions/configure-pages@v5
5151
- name: Install Node.js dependencies
5252
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
5353
- name: Build with Hugo
5454
env:
55-
# For maximum backward compatibility with Hugo modules
55+
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
5656
HUGO_ENVIRONMENT: production
57-
HUGO_ENV: production
5857
run: |
5958
hugo \
6059
--gc \
6160
--minify \
6261
--baseURL "${{ steps.pages.outputs.base_url }}/"
6362
- name: Upload artifact
64-
uses: actions/upload-pages-artifact@v1
63+
uses: actions/upload-pages-artifact@v3
6564
with:
6665
path: ./public
6766

@@ -75,4 +74,4 @@ jobs:
7574
steps:
7675
- name: Deploy to GitHub Pages
7776
id: deployment
78-
uses: actions/deploy-pages@v2
77+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)