Skip to content

Commit b2282bb

Browse files
committed
fix: remove cached version
1 parent bb38582 commit b2282bb

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/hugo.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,15 @@ jobs:
3232
HUGO_VERSION: 0.108.0
3333
steps:
3434
# Clean workspace to ensure no artifacts from previous builds
35-
- name: Clean workspace
36-
run: git clean -fdx
35+
- name: Clean old build artifacts
36+
run: |
37+
rm -rf public # Remove the previous build artifacts (public folder)
38+
39+
# Generate a text file with the latest build info (e.g., commit hash, date)
40+
- name: Create build info file
41+
run: |
42+
echo "Build Date: $(date)" > public/build_info.txt
43+
echo "Commit Hash: $(git rev-parse HEAD)" >> public/build_info.txt
3744
3845
- name: Install Hugo CLI
3946
run: |

0 commit comments

Comments
 (0)