Skip to content

Commit c49bb66

Browse files
committed
Updated deploy (now publish) workflow
1 parent 5113e77 commit c49bb66

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy
1+
name: Publish
22

33
on:
44
release:
@@ -35,7 +35,7 @@ jobs:
3535
run: mvn -B package --file pom.xml
3636

3737
- name: Publish
38-
run: mvn -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} clean deploy
38+
run: mvn -B -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} clean deploy
3939
env:
4040
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
4141
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

example/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<maven.compiler.target>11</maven.compiler.target>
1414
<jsonschema2pojo.version>1.0.2</jsonschema2pojo.version>
1515
<spring-boot.version>2.3.4.RELEASE</spring-boot.version>
16-
<jsonschema2pojo-spring-data-couchbase.version>0.0.1-SNAPSHOT</jsonschema2pojo-spring-data-couchbase.version>
16+
<jsonschema2pojo-spring-data-couchbase.version>0.0.1</jsonschema2pojo-spring-data-couchbase.version>
1717
</properties>
1818

1919
<dependencies>

pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
4848
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
4949
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
50+
<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
5051
</properties>
5152

5253
<dependencies>
@@ -189,6 +190,17 @@
189190
</execution>
190191
</executions>
191192
</plugin>
193+
<plugin>
194+
<groupId>org.sonatype.plugins</groupId>
195+
<artifactId>nexus-staging-maven-plugin</artifactId>
196+
<version>${nexus-staging-maven-plugin.version}</version>
197+
<extensions>true</extensions>
198+
<configuration>
199+
<serverId>ossrh</serverId>
200+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
201+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
202+
</configuration>
203+
</plugin>
192204
</plugins>
193205
</build>
194206

0 commit comments

Comments
 (0)