File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Auto Release on Version Bump
22
33on :
4+ workflow_dispatch :
45 push :
56 branches :
67 - main
@@ -12,18 +13,17 @@ jobs:
1213 build-and-release :
1314 runs-on : ubuntu-latest
1415 permissions :
15- contents : write # Needed to create a release
16+ contents : write
1617
1718 steps :
1819 - name : Checkout Repository
1920 uses : actions/checkout@v4
2021 with :
21- fetch-depth : 0 # Required to check existing tags
22+ fetch-depth : 0
2223
2324 - name : Extract Version from plugin.yml
2425 id : extract_version
2526 run : |
26- # Extrahiert die Version aus der plugin.yml (ignoriert Leerzeichen und Anführungszeichen)
2727 VERSION=$(grep '^version:' src/main/resources/plugin.yml | awk '{print $2}' | tr -d '"'\'' ')
2828 echo "VERSION=$VERSION" >> $GITHUB_ENV
2929 echo "Extracted version: $VERSION"
6565 name : " PlayerStatsRemake v${{ env.VERSION }}"
6666 generate_release_notes : true
6767 body : |
68- 🚀 **PlayerStatsRemake v${{ env.VERSION }}** has been released!
68+ **PlayerStatsRemake v${{ env.VERSION }}** has been released!
6969
70- ### 💻 API Usage (JitPack)
70+ ### API Usage (JitPack)
7171 To use this version in your own plugin, add JitPack to your repositories and use the following dependency:
7272
7373 ```xml
You can’t perform that action at this time.
0 commit comments