Skip to content

Commit be55684

Browse files
committed
Fix Release Workflow to publish in Maven Central.
1 parent 9247359 commit be55684

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
java-version: 8
2929
server-id: central
3030
distribution: "adopt"
31-
server-username: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
32-
server-password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
31+
server-username: MAVEN_CENTRAL_USERNAME
32+
server-password: MAVEN_CENTRAL_PASSWORD
3333
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
34-
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
34+
gpg-passphrase: GPG_PASSPHRASE
3535

3636
# This step runs ONLY on branch pushes (dry-run)
3737
- name: Run Release Dry-Run (Verify)

databricks-sdk-java/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<version>0.55.0</version>
99
</parent>
1010
<artifactId>databricks-sdk-java</artifactId>
11+
<name>Databricks SDK for Java</name>
1112
<properties>
1213
<httpclient.version>4.5.14</httpclient.version>
1314
<jackson.version>2.15.2</jackson.version>

pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,27 @@
256256
</execution>
257257
</executions>
258258
</plugin>
259+
<plugin>
260+
<groupId>org.apache.maven.plugins</groupId>
261+
<artifactId>maven-gpg-plugin</artifactId>
262+
<version>1.6</version>
263+
<configuration>
264+
<!-- Prevent gpg from using pinentry programs -->
265+
<gpgArguments>
266+
<arg>--pinentry-mode</arg>
267+
<arg>loopback</arg>
268+
</gpgArguments>
269+
</configuration>
270+
<executions>
271+
<execution>
272+
<id>sign-artifacts</id>
273+
<goals>
274+
<goal>sign</goal>
275+
</goals>
276+
<phase>verify</phase>
277+
</execution>
278+
</executions>
279+
</plugin>
259280
<plugin>
260281
<groupId>org.sonatype.central</groupId>
261282
<artifactId>central-publishing-maven-plugin</artifactId>

0 commit comments

Comments
 (0)