Skip to content

Commit 04380d7

Browse files
author
Splitter
committed
starters: upgrade GitHub actions
1 parent 96e56f2 commit 04380d7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/publish.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Deploy website to GitHub Pages
22

33
env:
4-
WC_HUGO_VERSION: '0.119.0'
4+
WC_HUGO_VERSION: '0.124.1'
55

66
on:
77
# Trigger the workflow every time you push to the `main` branch
@@ -32,27 +32,27 @@ jobs:
3232
# Fetch history for Hugo's .GitInfo and .Lastmod
3333
fetch-depth: 0
3434
- name: Setup Hugo
35-
uses: peaceiris/actions-hugo@v2
35+
uses: peaceiris/actions-hugo@v3
3636
with:
3737
hugo-version: ${{ env.WC_HUGO_VERSION }}
3838
extended: true
39-
- uses: actions/cache@v3
39+
- uses: actions/cache@v4
4040
with:
4141
path: /tmp/hugo_cache_runner/
4242
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }}
4343
restore-keys: |
4444
${{ runner.os }}-hugomod-
4545
- name: Setup Pages
4646
id: pages
47-
uses: actions/configure-pages@v3
47+
uses: actions/configure-pages@v5
4848
- name: Build with Hugo
4949
env:
5050
HUGO_ENVIRONMENT: production
5151
run: |
5252
echo "Hugo Cache Dir: $(hugo config | grep cachedir)"
5353
hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
5454
- name: Upload artifact
55-
uses: actions/upload-pages-artifact@v2
55+
uses: actions/upload-pages-artifact@v3
5656
with:
5757
path: ./public
5858

@@ -67,4 +67,4 @@ jobs:
6767
steps:
6868
- name: Deploy to GitHub Pages
6969
id: deployment
70-
uses: actions/deploy-pages@v2
70+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)