Skip to content

Commit

Permalink
ci: auto modify version
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Feb 4, 2024
1 parent 4224913 commit 868d886
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ jobs:
mv ../release/legacy-script-engine-${{ matrix.backend }} .
cp ../tooth.template.json tooth.json
sed -i "s/\${engine}/${{ matrix.backend }}/g" tooth.json
sed -i "s/\${version}/${{ github.event.release.tag_name }}/g" tooth.json
git add .
git commit -m "Release ${{ github.event.release.tag_name }}"
git tag ${{ github.event.release.tag_name }}
Expand Down
2 changes: 1 addition & 1 deletion tooth.template.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"format_version": 2,
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-${engine}",
"version": "0.1.0",
"version": "${version}",
"info": {
"name": "LegacyScriptEngine-${engine}",
"description": "A plugin engine for running LLSE plugins on LeviLamina",
Expand Down

0 comments on commit 868d886

Please sign in to comment.