From 1eefe9ed9b02c20e937978a0203452653264b1da Mon Sep 17 00:00:00 2001 From: Edward Slavich Date: Mon, 1 Sep 2025 07:24:07 -0800 Subject: [PATCH] Another tweak to publish --- .github/workflows/publish.yml | 7 +++++-- pom.xml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) 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