From 8b69f1b153d7940c6b342d1d6a5439d999b98e7f Mon Sep 17 00:00:00 2001 From: Drzaln Date: Thu, 28 Jan 2021 19:42:20 +0700 Subject: [PATCH] add signing action --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++-- .gitignore | 2 ++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de94714..7c2fbcc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,20 +14,45 @@ jobs: steps: - name: Checkout to Action V2 uses: actions/checkout@v2 + - name: Checkout Node JS uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} + - name: Install npm dependencies run: | npm install + - name: Make gradlew executable run: cd android && chmod +x ./gradlew + - name: Build Android Release run: | cd android && ./gradlew assembleRelease - - name: Upload Artifact + + - name: Build Android App Bundle + run: | + cd android && ./gradlew bundleRelease --no-daemon + + - name: Sign App Bundle + id: sign_app + uses: r0adkll/sign-android-release@v1 + with: + releaseDirectory: android/app/build/outputs/bundle/release + signingKeyBase64: ${{ secrets.ANDROID_SIGNING_KEY }} + alias: ${{ secrets.ANDROID_SIGNING_ALIAS }} + keyStorePassword: ${{ secrets.ANDROID_SIGNING_STORE_PASSWORD }} + keyPassword: ${{ secrets.ANDROID_SIGNING_KEY_PASSWORD }} + + - name: Upload Artifact APK uses: actions/upload-artifact@v2 with: name: RnFootball-apk - path: android/app/build/outputs/apk/release/app-release.apk \ No newline at end of file + path: android/app/build/outputs/apk/release/app-release.apk + + - name: Upload Artifact Bundle + uses: actions/upload-artifact@v2 + with: + name: Signed App Bundle + path: ${{steps.sign_app.outputs.signedReleaseFile}} \ No newline at end of file diff --git a/.gitignore b/.gitignore index ad572e6..7a18c37 100644 --- a/.gitignore +++ b/.gitignore @@ -34,6 +34,8 @@ local.properties node_modules/ npm-debug.log yarn-error.log +my-upload-key.keystore +some_signing_key.jks.base64.txt # BUCK buck-out/