Skip to content

Commit 97d9b3e

Browse files
authored
chore: fix snapshot deployment (#96)
1 parent 3840582 commit 97d9b3e

File tree

2 files changed

+33
-23
lines changed

2 files changed

+33
-23
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: 32 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -182,37 +182,18 @@
182182
</plugin>
183183
<plugin>
184184
<artifactId>maven-gpg-plugin</artifactId>
185-
<executions>
186-
<execution>
187-
<id>sign-artifacts</id>
188-
<phase>deploy</phase>
189-
<goals>
190-
<goal>sign</goal>
191-
</goals>
192-
</execution>
193-
</executions>
185+
<version>3.2.8</version>
194186
</plugin>
195187
<plugin>
196188
<groupId>org.sonatype.central</groupId>
197189
<artifactId>central-publishing-maven-plugin</artifactId>
198-
<configuration>
199-
<publishingServerId>central</publishingServerId>
200-
</configuration>
190+
<version>0.8.0</version>
191+
<extensions>true</extensions>
201192
</plugin>
202193
</plugins>
203194

204195
<pluginManagement>
205196
<plugins>
206-
<plugin>
207-
<artifactId>maven-gpg-plugin</artifactId>
208-
<version>3.2.7</version>
209-
</plugin>
210-
<plugin>
211-
<groupId>org.sonatype.central</groupId>
212-
<artifactId>central-publishing-maven-plugin</artifactId>
213-
<version>0.7.0</version>
214-
<extensions>true</extensions>
215-
</plugin>
216197
<plugin>
217198
<artifactId>maven-clean-plugin</artifactId>
218199
<version>3.5.0</version>
@@ -269,6 +250,35 @@
269250
</pluginManagement>
270251
</build>
271252

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

0 commit comments

Comments
 (0)