Skip to content

Commit f2e03de

Browse files
committed
add profile deploy-release
1 parent 1416892 commit f2e03de

File tree

2 files changed

+37
-9
lines changed

2 files changed

+37
-9
lines changed

.github/actions/deploy-release/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ runs:
6262
-Dmaven.test.skip=true
6363
-Dgpg.passphrase="$GPG_PASSPHRASE"
6464
-Dgpg.keyname="$GPG_PUB_KEY"
65-
clean deploy
65+
clean deploy -P deploy-release
6666
shell: bash
6767
env:
6868
MAVEN_CENTRAL_USER: ${{ inputs.user }}

pom.xml

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xmlns="http://maven.apache.org/POM/4.0.0"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
43
<modelVersion>4.0.0</modelVersion>
54

65
<licenses>
@@ -170,25 +169,25 @@
170169
</plugin>
171170
<plugin>
172171
<artifactId>maven-gpg-plugin</artifactId>
173-
<version>3.2.7</version>
174-
<executions>
172+
<version>3.2.8</version>
173+
<!-- <executions>
175174
<execution>
176175
<id>sign-artifacts</id>
177176
<phase>deploy</phase>
178177
<goals>
179178
<goal>sign</goal>
180179
</goals>
181180
</execution>
182-
</executions>
181+
</executions> -->
183182
</plugin>
184183
<plugin>
185184
<groupId>org.sonatype.central</groupId>
186185
<artifactId>central-publishing-maven-plugin</artifactId>
187-
<version>0.7.0</version>
186+
<version>0.8.0</version>
188187
<extensions>true</extensions>
189-
<configuration>
188+
<!-- <configuration>
190189
<publishingServerId>central</publishingServerId>
191-
</configuration>
190+
</configuration> -->
192191
</plugin>
193192
<!-- <plugin>
194193
<artifactId>maven-gpg-plugin</artifactId>
@@ -255,6 +254,35 @@
255254
</pluginManagement>
256255
</build>
257256

257+
<profiles>
258+
<profile>
259+
<id>deploy-release</id>
260+
<build>
261+
<plugins>
262+
<plugin>
263+
<artifactId>maven-gpg-plugin</artifactId>
264+
<executions>
265+
<execution>
266+
<id>sign-artifacts</id>
267+
<phase>deploy</phase>
268+
<goals>
269+
<goal>sign</goal>
270+
</goals>
271+
</execution>
272+
</executions>
273+
</plugin>
274+
<plugin>
275+
<groupId>org.sonatype.central</groupId>
276+
<artifactId>central-publishing-maven-plugin</artifactId>
277+
<configuration>
278+
<publishingServerId>central</publishingServerId>
279+
</configuration>
280+
</plugin>
281+
</plugins>
282+
</build>
283+
</profile>
284+
</profiles>
285+
258286
<distributionManagement>
259287
<snapshotRepository>
260288
<id>artifactory</id>

0 commit comments

Comments
 (0)