diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 344794e..c3491b4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: Publish jars to the GitHub maven repository +name: Publish to Maven Central on: workflow_dispatch: @@ -24,7 +24,10 @@ jobs: java-version: "21" distribution: corretto - - name: Publish package + - name: Set version + run: mvn versions:set -DnewVersion=${{ github.ref_name }} + + - name: Publish run: mvn --batch-mode deploy env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/pom.xml b/pom.xml index 4010a18..696e328 100644 --- a/pom.xml +++ b/pom.xml @@ -35,7 +35,7 @@ UTF-8 8 - 0.1-alpha-6 + dev 1.18.36 2.4 3.4.0