Skip to content

Commit 8cb28b2

Browse files
committed
fix: update CD release
1 parent 74a8dac commit 8cb28b2

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.github/workflows/cd.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,18 @@ jobs:
5252
DECRYPTER: ${{ secrets.DECRYPTER }}
5353
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
5454
PASSPHRASE: ${{ secrets.PASSPHRASE }}
55+
- run: ./gradlew -Pversion=$REF_NAME clean publishToSonatype closeAndReleaseSonatypeStagingRepository
56+
env:
57+
GITHUB_TAG: ${{ steps.vars.outputs.tag }}
58+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
59+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
60+
# PGP_KEY: ${{ secrets.PGP_KEY }}
61+
# PGP_PASSWORD: ${{ secrets.PGP_PASSWORD }}
62+
# REF_NAME: ${{ github.ref_name }}
63+
# CTP_OSS_USER: ${{ secrets.OSS_USER }}
64+
# CTP_OSS_SECRET: ${{ secrets.OSS_SECRET }}
65+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
# GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
5567
# - name: status
5668
# run: echo Build is tagged. Uploading artifact ${{ steps.vars.outputs.tag }} to maven central.
5769
# - name: Publish GitHub Pages

gradle-scripts/maven-publish.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ publishing {
4040
}
4141

4242
signing {
43-
def signingKey = System.getenv("PGP_KEY")
44-
def signingPassword = System.getenv("PGP_PASSWORD")
45-
useInMemoryPgpKeys(signingKey, signingPassword)
46-
sign publishing.publications.mavenJava
43+
// def signingKey = System.getenv("PGP_KEY")
44+
// def signingPassword = System.getenv("PGP_PASSWORD")
45+
// useInMemoryPgpKeys(signingKey, signingPassword)
46+
// sign publishing.publications.mavenJava
47+
useGpgCmd()
48+
sign publishing.publications.Maven
4749
}
4850

4951

0 commit comments

Comments
 (0)