1 workflow to rule them all
所有检测均成功
Workflow / Linting (push) Successful in 7s
Workflow / Release (push) Successful in 9s
continuous-integration/drone/push Build is passing

这个提交包含在:
Florian Brinker 2024-09-20 13:18:02 +02:00
父节点 e5c49e970a
当前提交 ea573dbd0e

查看文件

@ -17,7 +17,7 @@ jobs:
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
env:
VERSION: ${{ gitea.ref_name }}
Version: ${{ gitea.ref_name }}
steps:
- name: Check out repository code
uses: actions/checkout@v4
@ -33,22 +33,22 @@ jobs:
rm -f sources/.luacheckrc
- name: Set Version and AddonVersion
run: |
echo "Version: $VERSION"
export ADDON_VERSION=$(echo $VERSION | 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
echo "Version: ${{ env.Version }}"
export ADDON_VERSION=$(echo ${{ env.Version }} | sed -E 's/(0|)\.//g')
sed -i "s/0.123456789/${{ env.Version }}/g" sources/AchievementInfoCommon.lua
sed -i "s/0.123456789/${{ env.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-$VERSION.zip" ./AchievementInfo
zip -r "AchievementInfo-${{ env.Version }}.zip" ./AchievementInfo
- name: Create release
id: create_release
uses: akkuman/gitea-release-action@v1
with:
token: ${{ secrets.token }}
name: "AchievementInfo $VERSION"
tag_name: "$VERSION"
name: "AchievementInfo ${{ env.Version }}"
tag_name: "${{ env.Version }}"
body_path: AchievementInfo/CHANGELOG.md
draft: true
prerelease: false