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 bb38582 commit b2282bbCopy full SHA for b2282bb
.github/workflows/hugo.yaml
@@ -32,8 +32,15 @@ jobs:
32
HUGO_VERSION: 0.108.0
33
steps:
34
# Clean workspace to ensure no artifacts from previous builds
35
- - name: Clean workspace
36
- run: git clean -fdx
+ - name: Clean old build artifacts
+ 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
42
+ echo "Build Date: $(date)" > public/build_info.txt
43
+ echo "Commit Hash: $(git rev-parse HEAD)" >> public/build_info.txt
44
45
- name: Install Hugo CLI
46
run: |
0 commit comments