Skip to content

Commit e35498a

Browse files
author
Raphael Vullriede
committed
release prep
1 parent 69874d2 commit e35498a

File tree

4 files changed

+41
-35
lines changed

4 files changed

+41
-35
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish release package to the Maven Central Repository
2+
on:
3+
release:
4+
types: [ created ]
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Install gpg secret key
11+
run: |
12+
# Install gpg secret key
13+
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
14+
# Verify gpg secret key
15+
gpg --list-secret-keys --keyid-format LONG
16+
- uses: actions/checkout@v3
17+
- name: Set up JDK
18+
uses: actions/setup-java@v3
19+
with:
20+
java-version: 17
21+
distribution: 'temurin'
22+
cache: maven
23+
server-id: ossrh
24+
server-username: MAVEN_USERNAME
25+
server-password: MAVEN_PASSWORD
26+
- name: Publish package
27+
run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} -P osslabz-release clean deploy
28+
env:
29+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
30+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

.github/workflows/maven-publish.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/maven.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,14 @@ on:
1010

1111
jobs:
1212
build:
13-
1413
runs-on: ubuntu-latest
15-
1614
steps:
17-
- uses: actions/checkout@v3
18-
- name: Set up JDK 11
19-
uses: actions/setup-java@v3
20-
with:
21-
java-version: '11'
22-
distribution: 'adopt'
23-
cache: maven
24-
- name: Build with Maven
25-
run: mvn --batch-mode --update-snapshots package
15+
- uses: actions/checkout@v3
16+
- name: Set up JDK
17+
uses: actions/setup-java@v3
18+
with:
19+
java-version: 17
20+
distribution: 'temurin'
21+
cache: maven
22+
- name: Build with Maven
23+
run: mvn --batch-mode --update-snapshots package

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>net.osslabz</groupId>
77
<artifactId>evm-client</artifactId>
8-
<version>0.0.14-SNAPSHOT</version>
8+
<version>0.0.14</version>
99

1010
<name>EvmClient (${project.groupId}:${project.artifactId})</name>
1111
<description>A simple wrapper around web3j to simplify common use-cases. Also provides pre-configured information
@@ -195,4 +195,4 @@
195195
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
196196
</repository>
197197
</distributionManagement>
198-
</project>
198+
</project>

0 commit comments

Comments
 (0)