Change demo
تمامی بررسی‎ها موفق بودند
Linting / Luacheck (push) Successful in 7s
continuous-integration/drone/push Build is passing

This commit is contained in:
Florian Brinker 2024-09-20 03:44:32 +02:00
والد 155052a256
کامیت 288b6f5abf

مشاهده پرونده

@ -1,41 +0,0 @@
name: Build & Release
run-name: ${{ gitea.actor }} is creating a new release 🚀
on: [push]
#push:
#tags:
# - '**'
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
path: sources
- name: Delete unneeded files/dirs
run: |
rm -rf sources/.git
rm -rf sources/.gitea
rm -rf sources/screenshots
rm -f sources/.drone.status
rm -f sources/.drone.yml
rm -f sources/.luacheckrc
- name: Set Version and AddonVersion
run: |
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_NAME.zip" ./AchievementInfo
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: build-artifact
path: AchievementInfo*.zip
retention-days: 3