File tree Expand file tree Collapse file tree 4 files changed +41
-35
lines changed Expand file tree Collapse file tree 4 files changed +41
-35
lines changed Original file line number Diff line number Diff line change
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 }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 10
10
11
11
jobs :
12
12
build :
13
-
14
13
runs-on : ubuntu-latest
15
-
16
14
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
Original file line number Diff line number Diff line change 5
5
6
6
<groupId >net.osslabz</groupId >
7
7
<artifactId >evm-client</artifactId >
8
- <version >0.0.14-SNAPSHOT </version >
8
+ <version >0.0.14</version >
9
9
10
10
<name >EvmClient (${project.groupId} :${project.artifactId} )</name >
11
11
<description >A simple wrapper around web3j to simplify common use-cases. Also provides pre-configured information
195
195
<url >https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url >
196
196
</repository >
197
197
</distributionManagement >
198
- </project >
198
+ </project >
You can’t perform that action at this time.
0 commit comments