Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0b45d3a

Browse files
committedMay 24, 2021
Add initial release-aar github workflow
1 parent faaeb77 commit 0b45d3a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
 

‎.github/workflows/release-aar.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release React Native AAR
2+
# This workflow is manually triggered to release a new React Native AAR version
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
release-aar:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Build
12+
run: |
13+
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
14+
gpg --list-secret-keys --keyid-format LONG
15+
yarn install
16+
echo "signing.keyId=6EC70A60" >> gradle.properties
17+
echo "signing.password=${OSSRH_GPG_SECRET_KEY_PASSWORD}" >> gradle.properties
18+
echo "repositoryUsername=${OSSRH_SONATYPE_USERNAME}" >> gradle.properties
19+
echo "repositoryPassword=${OSSRH_SONATYPE_PASSWORD}" >> gradle.properties
20+
sed -i.bu 's/com.facebook.react/com.walmartlabs.ern/g' ReactAndroid/gradle.properties
21+
./gradlew ReactAndroid:assembleRelease
22+
./gradlew ReactAndroid:uploadArchives
23+
env:
24+
OSSRH_GPG_SECRET_KEY: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
25+
OSSRH_GPG_SECRET_KEY_PASSWORD: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
26+
OSSRH_SONATYPE_USERNAME: ${{ secrets.OSSRH_SONATYPE_USERNAME }}
27+
OSSRH_SONATYPE_PASSWORD: ${{ secrets.OSSRH_SONATYPE_PASSWORD }}

0 commit comments

Comments
 (0)
Please sign in to comment.