We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af301bb commit 736e2cdCopy full SHA for 736e2cd
3 files changed
.github/workflows/publish.yaml
@@ -42,6 +42,11 @@ jobs:
42
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }}
43
restore-keys: |
44
${{ runner.os }}-hugomod-
45
+ # 新增:清理旧文件(解决缓存残留)
46
+ - name: Clean
47
+ run: |
48
+ rm -rf public
49
+ rm -rf resources/_gen
50
- name: Setup Pages
51
id: pages
52
uses: actions/configure-pages@v5
@@ -50,7 +55,7 @@ jobs:
55
HUGO_ENVIRONMENT: production
56
run: |
57
echo "Hugo Cache Dir: $(hugo config | grep cachedir)"
53
- hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
58
+ hugo --minify --cleanDestinationDir --gc --baseURL "${{ steps.pages.outputs.base_url }}/"
54
59
- name: Upload artifact
60
uses: actions/upload-pages-artifact@v3
61
with:
content/authors/Jinsong Su/_index.md content/authors/jinsong-su/_index.mdcontent/authors/Jinsong Su/_index.md renamed to content/authors/jinsong-su/_index.md
content/authors/Jinsong Su/avatar.jpg content/authors/jinsong-su/avatar.jpgcontent/authors/Jinsong Su/avatar.jpg renamed to content/authors/jinsong-su/avatar.jpg
0 commit comments