Skip to content

Commit 4ae9910

Browse files
committed
GitHub release action improvement
1 parent 04fa402 commit 4ae9910

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ jobs:
5353
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
5454
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
5555
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
56-
run: mvn -B -DskipTests clean deploy
56+
run: mvn -B -DskipTests -Pdeploy-to-central clean deploy

pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
<maven.compiler.target>21</maven.compiler.target>
3737
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3838
<spring-boot.version>3.5.8</spring-boot.version>
39+
<skipSignArtifacts>true</skipSignArtifacts>
40+
<skipPublishing>true</skipPublishing>
3941
</properties>
4042

4143
<dependencyManagement>
@@ -97,6 +99,9 @@
9799
<goals><goal>sign</goal></goals>
98100
</execution>
99101
</executions>
102+
<configuration>
103+
<skip>${skipSignArtifacts}</skip>
104+
</configuration>
100105
</plugin>
101106

102107
<plugin>
@@ -105,12 +110,23 @@
105110
<version>0.9.0</version>
106111
<extensions>true</extensions>
107112
<configuration>
113+
<skipPublishing>${skipPublishing}</skipPublishing>
108114
<publishingServerId>central</publishingServerId>
109115
</configuration>
110116
</plugin>
111117
</plugins>
112118
</build>
113119

120+
<profiles>
121+
<profile>
122+
<id>deploy-to-central</id>
123+
<properties>
124+
<skipSignArtifacts>false</skipSignArtifacts>
125+
<skipPublishing>false</skipPublishing>
126+
</properties>
127+
</profile>
128+
</profiles>
129+
114130
<licenses>
115131
<license>
116132
<name>MIT License</name>

0 commit comments

Comments
 (0)