From bc2b07c6f6a7a419729ceab377a595a1529de14c Mon Sep 17 00:00:00 2001 From: Mohammad Anwar Date: Sun, 6 Oct 2024 18:34:33 +0600 Subject: [PATCH] fix: maven publish error --- .github/workflows/deploy.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a83aa57..4f9d192 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -60,5 +60,10 @@ jobs: xcode-version: latest-stable - name: Publish To Maven Central + env: + MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} + MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} + SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} + SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} run: | - ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache \ No newline at end of file + ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache -PmavenCentralUsername=${MAVEN_CENTRAL_USERNAME} -PmavenCentralPassword=${MAVEN_CENTRAL_PASSWORD} -Psigning.keyId=${SIGNING_KEY_ID} -Psigning.password=${SIGNING_KEY_PASSWORD} -Psigning.secretKeyRingFile=${HOME}/secret_key.gpg \ No newline at end of file