Skip to content

Commit

Permalink
Overwrite ANDROID_NDK_HOME for release workflow
Browse files Browse the repository at this point in the history
Reviewed By: oprisnik

Differential Revision: D63987120

fbshipit-source-id: d26c3113e783c80e6f5c47b18520df3e8938c7af
  • Loading branch information
Abbondanzo authored and facebook-github-bot committed Oct 7, 2024
1 parent 88326a9 commit 8a4a039
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 8a4a039

Please sign in to comment.