Skip to content

Commit e1759d5

Browse files
copy from hugo docs
1 parent 4760f52 commit e1759d5

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/hugo.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,14 @@ jobs:
6262
run: |
6363
hugo --gc --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
6464
65-
# ✅ Using `upload-pages-artifact@v2` (preferred for GitHub Pages)
66-
- name: Upload Pages artifact
67-
uses: actions/upload-pages-artifact@v2
65+
- name: Upload build artifact
66+
uses: actions/upload-artifact@v4 # Ensures no v3 usage
67+
with:
68+
name: hugo-site
69+
path: ./public
70+
71+
- name: Upload artifact
72+
uses: actions/upload-pages-artifact@v3
6873
with:
6974
path: ./public
7075

0 commit comments

Comments
 (0)