Skip to content

Commit cf66ae8

Browse files
author
Corneliu Tusnea
committed
update
1 parent 8adf735 commit cf66ae8

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -63,31 +63,13 @@ jobs:
6363
echo "EOF" >> $GITHUB_ENV
6464
rm -f signing_key.asc
6565
fi
66-
echo $OSSRH_USERNAME
67-
echo $SIGNING_KEY_ID
68-
69-
- name: List env
70-
env:
71-
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
72-
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
73-
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
74-
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
75-
run: |
76-
echo "User"
77-
echo $OSSRH_USERNAME
78-
echo "User2"
79-
echo ${{ secrets.OSSRH_USERNAME }}
80-
echo "Key"
81-
echo $SIGNING_KEY_ID
82-
83-
66+
8467
- name: Publish to Maven Central
8568
env:
8669
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
8770
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
88-
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
8971
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
90-
run: ./gradlew publish --no-daemon --stacktrace
72+
run: ./gradlew publishMavenPublicationToOSSRHRepository --no-daemon --stacktrace
9173

9274
# - name: Publish to GitHub Packages
9375
# env:

build.gradle.kts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,6 @@ subprojects {
123123
if (System.getenv("SIGNING_KEY") != null) {
124124
val signingKey = System.getenv("SIGNING_KEY")
125125
val signingPassword = System.getenv("SIGNING_PASSWORD") ?: ""
126-
println(">>>> KeyLength=" + signingKey.length + " > " + signingKey.substring(0, 10))
127-
println(">>>> PassLength=" + signingPassword.length + " > " + signingPassword.substring(0, 2))
128126
// Use 2-parameter version which only needs the key and password (no keyId)
129127
useInMemoryPgpKeys(signingKey, signingPassword)
130128
}

0 commit comments

Comments
 (0)