Change demo
This commit is contained in:
parent
699a95e245
commit
bc616e6c74
@ -20,12 +20,13 @@ jobs:
|
|||||||
rm -f sources/.luacheckrc
|
rm -f sources/.luacheckrc
|
||||||
- name: Set Version and AddonVersion
|
- name: Set Version and AddonVersion
|
||||||
run: |
|
run: |
|
||||||
export VERSION=${{ github.ref }}
|
echo "Version: $GITHUB_REF_NAME"
|
||||||
export ADDON_VERSION=$(echo ${{ github.ref }} | sed -E 's/(0|)\.//g')
|
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/AchievementInfoCommon.lua
|
||||||
sed -i "s/0.123456789/$VERSION/g" sources/AchievementInfo.txt
|
sed -i "s/0.123456789/$VERSION/g" sources/AchievementInfo.txt
|
||||||
sed -i "s/0.123456789/$ADDON_VERSION/g" sources/AchievementInfo.txt
|
sed -i "s/0.123456789/$ADDON_VERSION/g" sources/AchievementInfo.txt
|
||||||
- name: Rename and zip
|
- name: Rename and zip
|
||||||
run: |
|
run: |
|
||||||
mv sources AchievementInfo
|
mv sources AchievementInfo
|
||||||
zip -r "AchievementInfo-${{ github.ref }}.zip" ./AchievementInfo
|
zip -r "AchievementInfo-$GITHUB_REF_NAME.zip" ./AchievementInfo
|
Loading…
Reference in New Issue
Block a user