Change demo
Some checks failed
continuous-integration/drone/push Build is passing
Linting / Luacheck (push) Successful in 7s
Build & Release / Build (push) Failing after 7s
continuous-integration/drone/tag Build is passing

This commit is contained in:
Florian Brinker 2024-09-20 03:13:57 +02:00
父節點 699a95e245
當前提交 bc616e6c74

查看文件

@ -20,12 +20,13 @@ jobs:
rm -f sources/.luacheckrc
- name: Set Version and AddonVersion
run: |
export VERSION=${{ github.ref }}
export ADDON_VERSION=$(echo ${{ github.ref }} | sed -E 's/(0|)\.//g')
echo "Version: $GITHUB_REF_NAME"
export VERSION=$GITHUB_REF_NAME
export ADDON_VERSION=$(echo $GITHUB_REF_NAME | sed -E 's/(0|)\.//g')
sed -i "s/0.123456789/$VERSION/g" sources/AchievementInfoCommon.lua
sed -i "s/0.123456789/$VERSION/g" sources/AchievementInfo.txt
sed -i "s/0.123456789/$ADDON_VERSION/g" sources/AchievementInfo.txt
- name: Rename and zip
run: |
mv sources AchievementInfo
zip -r "AchievementInfo-${{ github.ref }}.zip" ./AchievementInfo
zip -r "AchievementInfo-$GITHUB_REF_NAME.zip" ./AchievementInfo