We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 98e78ae + a1dbb75 commit a414106Copy full SHA for a414106
1 file changed
.github/workflows/deploy.yml
@@ -27,6 +27,23 @@ jobs:
27
- name: Install dependencies
28
run: pnpm install
29
30
+ - name: Generate build version info
31
+ run: |
32
+ # Extract full and short commit SHA
33
+ FULL_SHA=$(git rev-parse HEAD)
34
+ SHORT_SHA=$(git rev-parse --short HEAD)
35
+
36
+ # Extract build date in "DD Mon YYYY" format
37
+ BUILD_DATE=$(date -u +'%d %b %Y')
38
39
+ # Create .env.production file with build info
40
+ echo "VITE_BUILD_SHA=${FULL_SHA}" > .env.production
41
+ echo "VITE_BUILD_DATE=${BUILD_DATE}" >> .env.production
42
43
+ # Log for debugging
44
+ echo "Build SHA: ${SHORT_SHA} (${FULL_SHA})"
45
+ echo "Build Date: ${BUILD_DATE}"
46
47
- name: Build
48
run: pnpm run build
49
0 commit comments