Skip to content

Commit 463df06

Browse files
committed
Fix: old assets referencing
1 parent 0fd3f42 commit 463df06

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ jobs:
4444
target_branch: release
4545
# deploy the default output dir of VuePress
4646
build_dir: docs/.vuepress/dist
47+
# Clear the target branch to remove old assets
48+
keep_history: false
49+
# Add commit message with timestamp for cache busting
50+
commit_message: "Deploy to GitHub Pages [timestamp: ${{ github.run_number }}]"
4751
env:
4852
# @see https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret
4953
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)