Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit 8ba8dda

Browse files
committed
publish to maven
1 parent 3ac301b commit 8ba8dda

File tree

3 files changed

+11
-23
lines changed

3 files changed

+11
-23
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ jobs:
1616
version: '11'
1717
architecture: x64
1818

19-
- name: 🚀 Deploy to Maven Central
20-
run: mvn -B deploy
21-
env:
22-
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
23-
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
19+
- name: 🚀 Deploy to Maven
20+
uses: samuelmeuli/action-maven-publish@v1
21+
with:
22+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
23+
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
24+
nexus_username: ${{ secrets.OSSRH_USERNAME }}
25+
nexus_password: ${{ secrets.OSSRH_TOKEN }}
2426

2527
- name: 🚀 Deploy to Releases
2628
uses: AButler/[email protected]

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<execution>
6767
<id>attach-sources</id>
6868
<goals>
69-
<goal>jar</goal>
69+
<goal>jar-no-fork</goal>
7070
</goals>
7171
</execution>
7272
</executions>
@@ -95,9 +95,9 @@
9595
<version>1.6.8</version>
9696
<extensions>true</extensions>
9797
<configuration>
98-
<serverid>ossrh</serverid>
99-
<nexusurl>https://oss.sonatype.org/</nexusurl>
100-
<autoreleaseafterclose>true</autoreleaseafterclose>
98+
<serverId>ossrh</serverId>
99+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
100+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
101101
</configuration>
102102
</plugin>
103103

settings.xml

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

0 commit comments

Comments
 (0)