diff --git a/.github/workflows/gh-release.yml b/.github/workflows/gh-release.yml
index cda6639..f7143b4 100644
--- a/.github/workflows/gh-release.yml
+++ b/.github/workflows/gh-release.yml
@@ -1,4 +1,4 @@
-name: Release Izanami Java client
+name: Release Izanami Java client (github)
on:
push:
@@ -17,8 +17,19 @@ jobs:
java-version: '11'
distribution: 'temurin'
cache: maven
- - name: Build & update version
- run: mvn -B clean package --file pom.xml
+ server-id: ossrh
+ server-username: OSSRH_USERNAME
+ server-password: OSSRH_PASSWORD
+ gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
+ gpg-passphrase: GPG_PASSPHRASE
+ - name: Publish to Apache Maven Central
+ run: mvn deploy
+ env:
+ OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
+ OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
+ MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
+# - name: Build & update version
+# run: mvn -B clean package --file pom.xml
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 94ead19..a2d994f 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,4 +1,4 @@
-name: Release Izanami Java client
+name: Release Izanami Java client (maven)
on:
push:
diff --git a/pom.xml b/pom.xml
index 33ef2f5..10442d7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2,7 +2,7 @@
4.0.0
fr.maif
izanami-client
- 2.0.6-SNAPSHOT
+ 2.0.0-beta1-SNAPSHOT
jar
${project.groupId}:${project.artifactId}
Java client for Izanami in version > 2