From 8a4a039c9f46d7c5ba3d68420b42fc6bdae8cc81 Mon Sep 17 00:00:00 2001 From: Peter Abbondanzo Date: Mon, 7 Oct 2024 10:29:03 -0700 Subject: [PATCH] Overwrite ANDROID_NDK_HOME for release workflow Reviewed By: oprisnik Differential Revision: D63987120 fbshipit-source-id: d26c3113e783c80e6f5c47b18520df3e8938c7af --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3c8ce23ece..35b2c3713b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,6 +26,7 @@ jobs: - name: Setup Android SDK uses: android-actions/setup-android@v3 - name: Install NDK + id: setup-ndk uses: nttld/setup-ndk@v1 with: ndk-version: r25c @@ -39,8 +40,12 @@ jobs: run: echo -e "signing.secretKeyRingFile=/tmp/secring.gpg\nsigning.keyId=${{ secrets.SIGNING_KEY_ID }}\nsigning.password=${{ secrets.SIGNING_PASSWORD }}\nmavenCentralPassword=${{ secrets.SONATYPE_NEXUS_PASSWORD }}\nmavenCentralUsername=${{ secrets.SONATYPE_NEXUS_USERNAME }}" >> gradle.properties - name: Upload Android Archives run: ./gradlew publish --no-daemon --no-parallel --info --stacktrace + env: + ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} - name: Release and close run: ./gradlew closeAndReleaseRepository + env: + ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} - name: Clean secrets if: always() run: rm /tmp/secring.gpg