diff --git a/.github/workflows/maven-publish-release.yml b/.github/workflows/maven-publish-release.yml
new file mode 100644
index 0000000..c9fe461
--- /dev/null
+++ b/.github/workflows/maven-publish-release.yml
@@ -0,0 +1,30 @@
+name: Publish release package to the Maven Central Repository
+on:
+ release:
+ types: [ created ]
+
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Install gpg secret key
+ run: |
+ # Install gpg secret key
+ cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
+ # Verify gpg secret key
+ gpg --list-secret-keys --keyid-format LONG
+ - uses: actions/checkout@v3
+ - name: Set up JDK
+ uses: actions/setup-java@v3
+ with:
+ java-version: 17
+ distribution: 'temurin'
+ cache: maven
+ server-id: ossrh
+ server-username: MAVEN_USERNAME
+ server-password: MAVEN_PASSWORD
+ - name: Publish package
+ run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} -P osslabz-release clean deploy
+ env:
+ MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
+ MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
\ No newline at end of file
diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml
deleted file mode 100644
index 44ce252..0000000
--- a/.github/workflows/maven-publish.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-name: Publish package to the Maven Central Repository
-on:
- release:
- types: [created]
-jobs:
- publish:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - name: Set up Maven Central Repository
- uses: actions/setup-java@v3
- with:
- java-version: '11'
- distribution: 'adopt'
- server-id: ossrh
- server-username: MAVEN_USERNAME
- server-password: MAVEN_PASSWORD
- - name: Publish package
- run: mvn --batch-mode deploy
- env:
- MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
- MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
\ No newline at end of file
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index de04e1f..34f4391 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -10,16 +10,14 @@ on:
jobs:
build:
-
runs-on: ubuntu-latest
-
steps:
- - uses: actions/checkout@v3
- - name: Set up JDK 11
- uses: actions/setup-java@v3
- with:
- java-version: '11'
- distribution: 'adopt'
- cache: maven
- - name: Build with Maven
- run: mvn --batch-mode --update-snapshots package
+ - uses: actions/checkout@v3
+ - name: Set up JDK
+ uses: actions/setup-java@v3
+ with:
+ java-version: 17
+ distribution: 'temurin'
+ cache: maven
+ - name: Build with Maven
+ run: mvn --batch-mode --update-snapshots package
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index f084961..599974a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
net.osslabz
evm-client
- 0.0.14-SNAPSHOT
+ 0.0.14
EvmClient (${project.groupId}:${project.artifactId})
A simple wrapper around web3j to simplify common use-cases. Also provides pre-configured information
@@ -195,4 +195,4 @@
https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
-
+
\ No newline at end of file