Skip to content

Commit e68adff

Browse files
Update GitHub Deploy config
1 parent 5e14bf7 commit e68adff

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
2727

2828
- name: Deploy with Maven
29-
run: mvn deploy -X
29+
run: mvn deploy -X -Psign-artifacts -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }}
3030
env:
3131
MAVEN_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
3232
MAVEN_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}

pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,27 @@
4242
</developers>
4343

4444
<profiles>
45+
<profile>
46+
<id>sign-artifacts</id>
47+
<build>
48+
<plugins>
49+
<plugin>
50+
<groupId>org.apache.maven.plugins</groupId>
51+
<artifactId>maven-gpg-plugin</artifactId>
52+
<version>3.0.1</version>
53+
<executions>
54+
<execution>
55+
<id>sign-artifacts</id>
56+
<phase>verify</phase>
57+
<goals>
58+
<goal>sign</goal>
59+
</goals>
60+
</execution>
61+
</executions>
62+
</plugin>
63+
</plugins>
64+
</build>
65+
</profile>
4566
<profile>
4667
<id>ossrh</id>
4768
<activation>

0 commit comments

Comments
 (0)