Skip to content

Commit dcd226f

Browse files
committed
ci: restore signed central publishing
1 parent caeaf9d commit dcd226f

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
env:
1616
CENTRAL_TOKEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
1717
CENTRAL_TOKEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
18+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
1819
steps:
1920
- name: Checkout
2021
uses: actions/checkout@v4
@@ -28,6 +29,8 @@ jobs:
2829
server-id: central
2930
server-username: CENTRAL_TOKEN_USERNAME
3031
server-password: CENTRAL_TOKEN_PASSWORD
32+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
33+
gpg-passphrase: GPG_PASSPHRASE
3134

3235
- name: Check release gate
3336
id: gate

pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,20 @@
142142
</execution>
143143
</executions>
144144
</plugin>
145+
<plugin>
146+
<groupId>org.apache.maven.plugins</groupId>
147+
<artifactId>maven-gpg-plugin</artifactId>
148+
<version>3.2.8</version>
149+
<executions>
150+
<execution>
151+
<id>sign-artifacts</id>
152+
<phase>verify</phase>
153+
<goals>
154+
<goal>sign</goal>
155+
</goals>
156+
</execution>
157+
</executions>
158+
</plugin>
145159
</plugins>
146160
</build>
147161
</profile>

0 commit comments

Comments
 (0)