Skip to content

Commit 383ccb5

Browse files
authored
Merge pull request #29 from Bandwidth/SWI-6631
SWI-6631 Sign Package
2 parents 8a3e366 + 0200b87 commit 383ccb5

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
server-id: 'ossrh'
2020
server-username: OSSRH_USERNAME
2121
server-password: OSSRH_PASSWORD
22+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
23+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2224

2325
- name: Get Maven project version
2426
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
@@ -31,3 +33,4 @@ jobs:
3133
env:
3234
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3335
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
36+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,26 @@
7171
</execution>
7272
</executions>
7373
</plugin>
74+
<plugin>
75+
<groupId>org.apache.maven.plugins</groupId>
76+
<artifactId>maven-gpg-plugin</artifactId>
77+
<version>3.0.1</version>
78+
<executions>
79+
<execution>
80+
<id>sign-artifacts</id>
81+
<phase>verify</phase>
82+
<goals>
83+
<goal>sign</goal>
84+
</goals>
85+
</execution>
86+
</executions>
87+
<configuration>
88+
<gpgArguments>
89+
<arg>--pinentry-mode</arg>
90+
<arg>loopback</arg>
91+
</gpgArguments>
92+
</configuration>
93+
</plugin>
7494
<plugin>
7595
<groupId>org.apache.maven.plugins</groupId>
7696
<artifactId>maven-source-plugin</artifactId>

0 commit comments

Comments
 (0)