55 branches : [ main, master ]
66 workflow_dispatch :
77
8+ permissions :
9+ contents : write
10+ packages : read
11+
812jobs :
913 extract-version :
1014 runs-on : ubuntu-latest
@@ -14,13 +18,13 @@ jobs:
1418 tag_exists : ${{ steps.check_tag.outputs.TAG_EXISTS }}
1519 steps :
1620 - name : Checkout code
17- uses : actions/checkout@v4
21+ uses : actions/checkout@v6
1822 with :
1923 fetch-depth : 0
20- token : ${{ secrets.PAT }}
24+ token : ${{ secrets.GITHUB_TOKEN }}
2125
2226 - name : Set up JDK
23- uses : actions/setup-java@v3
27+ uses : actions/setup-java@v6
2428 with :
2529 java-version : " 25"
2630 distribution : " temurin"
@@ -62,10 +66,10 @@ jobs:
6266 if : needs.extract-version.outputs.tag_exists == 'false'
6367 steps :
6468 - name : Checkout code
65- uses : actions/checkout@v4
69+ uses : actions/checkout@v6
6670
6771 - name : Set up JDK
68- uses : actions/setup-java@v3
72+ uses : actions/setup-java@v6
6973 with :
7074 java-version : " 25"
7175 distribution : " temurin"
7478 run : mvn -q clean package
7579
7680 - name : Upload artifact
77- uses : actions/upload-artifact@v4
81+ uses : actions/upload-artifact@v8
7882 with :
7983 name : ${{ needs.extract-version.outputs.artifact_name }}-v${{ needs.extract-version.outputs.version }}
8084 path : target/*.jar
8589 if : needs.extract-version.outputs.tag_exists == 'false'
8690 steps :
8791 - name : Checkout code
88- uses : actions/checkout@v4
92+ uses : actions/checkout@v6
8993 with :
90- token : ${{ secrets.PAT }}
94+ token : ${{ secrets.GITHUB_TOKEN }}
9195 fetch-depth : 0
9296
9397 - name : Create tag
@@ -105,10 +109,10 @@ jobs:
105109 changelog : ${{ steps.generate_changelog.outputs.CHANGELOG }}
106110 steps :
107111 - name : Checkout code
108- uses : actions/checkout@v4
112+ uses : actions/checkout@v6
109113 with :
110114 fetch-depth : 0
111- token : ${{ secrets.PAT }}
115+ token : ${{ secrets.GITHUB_TOKEN }}
112116
113117 - name : Generate changelog with commit links
114118 id : generate_changelog
@@ -139,7 +143,7 @@ jobs:
139143 echo "EOF" >> $GITHUB_OUTPUT
140144
141145 - name : Download artifact
142- uses : actions/download-artifact@v4
146+ uses : actions/download-artifact@v8
143147 with :
144148 name : ${{ needs.extract-version.outputs.artifact_name }}-v${{ needs.extract-version.outputs.version }}
145149
@@ -154,15 +158,15 @@ jobs:
154158 body : ${{ steps.generate_changelog.outputs.CHANGELOG }}
155159 files : " **/*.jar"
156160 env :
157- GITHUB_TOKEN : ${{ secrets.PAT }}
161+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
158162
159163 publish-modrinth :
160164 needs : [extract-version, release]
161165 runs-on : ubuntu-latest
162166 if : needs.extract-version.outputs.tag_exists == 'false'
163167 steps :
164168 - name : Download artifact
165- uses : actions/download-artifact@v4
169+ uses : actions/download-artifact@v8
166170 with :
167171 name : ${{ needs.extract-version.outputs.artifact_name }}-v${{ needs.extract-version.outputs.version }}
168172
0 commit comments