Skip to content

Commit 99d43eb

Browse files
committed
Sign the artifact before deploying
I believe that the pom change makes it come after the actual push-to-sonatype step
1 parent da4901a commit 99d43eb

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
mvn -P gpg_verify \
5555
--no-transfer-progress \
5656
--batch-mode \
57-
--file pom.xml -s release/m2-settings.xml verify deploy -Dversion.modifier=''
57+
--file pom.xml -s release/m2-settings.xml verify sign deploy -Dversion.modifier=''
5858
env:
5959
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
6060
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

pom.xml

-9
Original file line numberDiff line numberDiff line change
@@ -289,15 +289,6 @@
289289
<groupId>org.apache.maven.plugins</groupId>
290290
<artifactId>maven-gpg-plugin</artifactId>
291291
<version>1.5</version>
292-
<executions>
293-
<execution>
294-
<id>sign-artifacts</id>
295-
<!-- we only need to sign if we are deploying (publishing) -->
296-
<phase>deploy</phase>
297-
<goals>
298-
<goal>sign</goal>
299-
</goals>
300-
</execution>
301292
</executions>
302293
</plugin>
303294
<!-- end sign -->

0 commit comments

Comments
 (0)