Skip to content

Commit 13215cc

Browse files
deepanshgoyal33Deepansh
andauthored
Add package signing gpg keys for the artifact (#91)
* add: add metric for null partition column * fix: add signing step for the publish * fix: indentation --------- Co-authored-by: Deepansh <[email protected]>
1 parent 21578bf commit 13215cc

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

.github/workflows/package.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ jobs:
3030
distribution: adopt
3131
java-version: 8
3232
- name: Publish package
33-
run: ./gradlew publish
33+
run: |
34+
printf "$GPG_SIGNING_KEY" | base64 --decode > private.key
35+
./gradlew publish -Psigning.keyId=$GPG_SIGNING_KEY_ID -Psigning.password=$GPG_SIGNING_PASSWORD -Psigning.secretKeyRingFile=private.key
3436
env:
3537
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
39+
GPG_SIGNING_KEY_ID: ${{ secrets.GPG_SIGNING_KEY_ID }}
40+
GPG_SIGNING_PASSWORD: ${{ secrets.GPG_SIGNING_PASSWORD }}
41+

build.gradle

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ plugins {
1818
id 'io.franzbecker.gradle-lombok' version '5.0.0'
1919
id 'maven-publish'
2020
id 'signing'
21-
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
2221
}
2322

2423
group 'com.gotocompany'
@@ -192,16 +191,6 @@ signing {
192191
}
193192
}
194193

195-
nexusPublishing {
196-
repositories {
197-
sonatype {
198-
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
199-
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
200-
username = System.getenv("MAVEN_USERNAME")
201-
password = System.getenv("MAVEN_PASSWORD")
202-
}
203-
}
204-
}
205194
jacocoTestCoverageVerification {
206195
afterEvaluate {
207196
getClassDirectories().setFrom(classDirectories.files.collect {

0 commit comments

Comments
 (0)