forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 1.66 KB
/
release-aar.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Release React Native AAR
# This workflow is manually triggered to release a new React Native AAR version
on:
workflow_dispatch:
jobs:
release-aar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Publish Maven Artifact
run: |
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
yarn install
echo "signing.gnupg.keyName=${OSSRH_GPG_SECRET_KEY_ID}" >> gradle.properties
echo "signing.gnupg.passphrase=${OSSRH_GPG_SECRET_KEY_PASSWORD}" >> gradle.properties
echo "repositoryUsername=${OSSRH_SONATYPE_USERNAME}" >> gradle.properties
echo "repositoryPassword=${OSSRH_SONATYPE_PASSWORD}" >> gradle.properties
echo "signingKey=${OSSRH_GPG_SECRET_KEY}" >> gradle.properties
echo "signingPassword=${OSSRH_GPG_SECRET_KEY_PASSWORD}" >> gradle.properties
sed -i.bu 's/com.facebook.react/com.walmartlabs.ern/g' packages/react-native/ReactAndroid/gradle.properties
sed -i.bu 's/com.facebook.react/com.walmartlabs.ern/g' packages/react-native/ReactAndroid/hermes-engine/gradle.properties
./gradlew assembleRelease
./gradlew publishAllPublicationsToErnRepository --stacktrace
env:
OSSRH_GPG_SECRET_KEY_ID: ${{ secrets.OSSRH_GPG_SECRET_KEY_ID }}
OSSRH_GPG_SECRET_KEY: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
OSSRH_GPG_SECRET_KEY_PASSWORD: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
OSSRH_SONATYPE_USERNAME: ${{ secrets.OSSRH_SONATYPE_USERNAME }}
OSSRH_SONATYPE_PASSWORD: ${{ secrets.OSSRH_SONATYPE_PASSWORD }}