Skip to content

Commit

Permalink
Improve release workflow (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
zefir-git authored May 5, 2024
2 parents 9a22ab7 + 58d1711 commit f5aa5ff
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
with:
java-version: '17'
distribution: 'corretto'

- name: Set project version
run: mvn -B versions:set -DnewVersion=${{ github.event.release.tag_name }} -DgenerateBackupPoms=false

- name: Build and package Maven project
run: mvn clean package
Expand All @@ -41,6 +44,15 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload to Modrinth
uses: cloudnode-pro/[email protected]
with:
token: ${{ secrets.MODRINTH_TOKEN }}
project: 5Ce4fxJB
file: target/CloudnodeMSG-${{ github.event.release.tag_name }}.jar
changelog: ${{ github.event.release.body }}
loaders: paper

- name: Generate Javadoc
run: mvn -B javadoc:javadoc --file pom.xml

Expand Down

0 comments on commit f5aa5ff

Please sign in to comment.