1414 steps :
1515 - name : Checkout code
1616 uses : actions/checkout@v4
17+ with :
18+ fetch-depth : 0
1719 - name : Set up JDK 17
1820 uses : actions/setup-java@v4
1921 with :
@@ -28,33 +30,16 @@ jobs:
2830 key : gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
2931 restore-keys : |
3032 gradle-${{ runner.os }}-
31- - name : Bump version and update changelog
32- uses : google-github-actions/release-please-action@v4
33- id : release_please
34- with :
35- release-type : simple
36- package-name : KickChatMC
37- - name : Check if release created
38- if : ${{ steps.release_please.outputs.release_created }}
39- run : echo "Release created"
4033 - name : Build with Gradle
41- if : ${{ steps.release_please.outputs.release_created }}
4234 run : ./gradlew shadowJar --stacktrace
43- - name : Upload build artifact
44- uses : actions/upload-artifact@v4
45- with :
46- name : KickChatMC
47- path : build/libs/KickChatMC-*.jar
4835 - name : Generate changelog
49- if : ${{ steps.release_please.outputs.release_created }}
5036 uses : mikepenz/release-changelog-builder-action@v3
5137 id : build_changelog
5238 with :
5339 configuration : ' .github/changelog-configuration.json'
5440 env :
5541 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5642 - name : Create GitHub Release
57- if : ${{ steps.release_please.outputs.release_created }}
5843 uses : softprops/action-gh-release@v1
5944 env :
6045 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6449 body : ${{ steps.build_changelog.outputs.changelog }}
6550 draft : false
6651 prerelease : false
67- files : build/libs/KickChatMC-*.jar
52+ files : build/libs/KickChatMC-*.jar
0 commit comments