Skip to content

Commit e42a490

Browse files
committed
feat: generate version info in json
1 parent 8405755 commit e42a490

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/upload_dev.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ jobs:
1818
with:
1919
persist-credentials: false
2020

21+
# Create version.json with version and commit hash
22+
- name: Create version.json
23+
run: |
24+
VERSION=$(cat version_latest.txt | tr -d '[:space:]')
25+
SHORT_SHA="${GITHUB_SHA::7}"
26+
echo "{\"version\": \"${VERSION}\", \"commit\": \"${SHORT_SHA}\"}" > version.json
27+
2128
# Create ZIP File in a New Source Directory
2229
- name: Prepare and Zip Release Files
2330
run: |

0 commit comments

Comments
 (0)