From 699a95e2452b5bc2861d2be7f7881e15b1509bf1 Mon Sep 17 00:00:00 2001 From: Florian Brinker Date: Fri, 20 Sep 2024 03:10:30 +0200 Subject: [PATCH] Change demo --- .gitea/workflows/release.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/release.yaml diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..a0cadfc --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -0,0 +1,31 @@ +name: Build & Release +run-name: ${{ gitea.actor }} is creating a new release 🚀 +on: + push: + tags: + - '**' + +jobs: + Build: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - name: Delete unneeded files/dirs + run: | + rm -rf sources/.git + rm -rf sources/screenshots + rm -f sources/.drone.status + rm -f sources/.drone.yml + 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') + 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 \ No newline at end of file