From 347362f09464ef1be3ce10f170f1bf0cf22023a5 Mon Sep 17 00:00:00 2001 From: thunderbiscuit Date: Wed, 31 Aug 2022 15:55:43 -0400 Subject: [PATCH] Pick up Nexus credentials from GitHub secrets --- .github/workflows/publish-android.yaml | 2 ++ .github/workflows/publish-jvm.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/publish-android.yaml b/.github/workflows/publish-android.yaml index 87a04bb..a9014dc 100644 --- a/.github/workflows/publish-android.yaml +++ b/.github/workflows/publish-android.yaml @@ -51,6 +51,8 @@ jobs: ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.PGP_KEY_ID }} ORG_GRADLE_PROJECT_signingKey: ${{ secrets.PGP_SECRET_KEY }} ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PGP_PASSPHRASE }} + ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.NEXUS_USERNAME }} + ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.NEXUS_PASSWORD }} run: ./gradlew :android:publishToMavenLocal :android:publishToSonatype # Copy/paste this artifact in your local Maven repository at ~/.m2/repository/ diff --git a/.github/workflows/publish-jvm.yaml b/.github/workflows/publish-jvm.yaml index 0aeb985..083d4dd 100644 --- a/.github/workflows/publish-jvm.yaml +++ b/.github/workflows/publish-jvm.yaml @@ -90,6 +90,8 @@ jobs: ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.PGP_KEY_ID }} ORG_GRADLE_PROJECT_signingKey: ${{ secrets.PGP_SECRET_KEY }} ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PGP_PASSPHRASE }} + ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.NEXUS_USERNAME }} + ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.NEXUS_PASSWORD }} run: ./gradlew :jvm:publishToMavenLocal :jvm:publishToSonatype # Copy/paste this artifact in your local Maven repository at ~/.m2/repository/