Skip to content

Commit 868d886

Browse files
committed
ci: auto modify version
1 parent 4224913 commit 868d886

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ jobs:
108108
mv ../release/legacy-script-engine-${{ matrix.backend }} .
109109
cp ../tooth.template.json tooth.json
110110
sed -i "s/\${engine}/${{ matrix.backend }}/g" tooth.json
111+
sed -i "s/\${version}/${{ github.event.release.tag_name }}/g" tooth.json
111112
git add .
112113
git commit -m "Release ${{ github.event.release.tag_name }}"
113114
git tag ${{ github.event.release.tag_name }}

tooth.template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"format_version": 2,
33
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-${engine}",
4-
"version": "0.1.0",
4+
"version": "${version}",
55
"info": {
66
"name": "LegacyScriptEngine-${engine}",
77
"description": "A plugin engine for running LLSE plugins on LeviLamina",

0 commit comments

Comments
 (0)