File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed
Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -40,10 +40,12 @@ publishing {
4040}
4141
4242signing {
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
You can’t perform that action at this time.
0 commit comments