Skip to content

Commit dba9806

Browse files
authored
skip nexus staging deploy for example (#27)
* skip nexus staging deploy for example * update workflow name
1 parent e3ca660 commit dba9806

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

.github/workflows/deploy_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
2727
restore-keys: ${{ runner.os }}-maven-
2828

29-
- name: Deploy SNAPSHOT to Sonatype
29+
- name: Deploy Release to Sonatype
3030
uses: samuelmeuli/action-maven-publish@v1
3131
with:
3232
gpg_private_key: ${{ secrets.JAVA_GPG_PRIVATE_KEY }}

example/pom.xml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,33 @@
1818
<plugin>
1919
<groupId>org.apache.maven.plugins</groupId>
2020
<artifactId>maven-deploy-plugin</artifactId>
21-
<configuration>
22-
<skip>true</skip>
23-
</configuration>
21+
<version>2.8.2</version>
22+
<executions>
23+
<execution>
24+
<id>default-deploy</id>
25+
<phase>deploy</phase>
26+
<configuration>
27+
<skip>true</skip>
28+
</configuration>
29+
</execution>
30+
</executions>
31+
</plugin>
32+
<plugin>
33+
<groupId>org.sonatype.plugins</groupId>
34+
<artifactId>nexus-staging-maven-plugin</artifactId>
35+
<executions>
36+
<execution>
37+
<id>default-deploy</id>
38+
<phase>deploy</phase>
39+
<goals>
40+
<goal>deploy</goal>
41+
</goals>
42+
<configuration>
43+
<serverId>ossrh</serverId>
44+
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
45+
</configuration>
46+
</execution>
47+
</executions>
2448
</plugin>
2549
<!-- compiler-plugin -->
2650
<plugin>

0 commit comments

Comments
 (0)