signing #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: android-build | |
on: | |
push: | |
branches: | |
- master | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
install-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install npm dependencies | |
run: | | |
yarn | |
build-android: | |
needs: install-and-test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install npm dependencies | |
run: | | |
yarn | |
- name: Decode Keystore | |
id: decode_keystore | |
uses: timheuer/base64-to-file@v1 | |
with: | |
fileName: 'keystore/ssp_keystore.jks' | |
encodedString: ${{ secrets.ANDROID_SIGNING_KEY }} | |
- name: Build Android APK Release | |
run: | | |
cd android && ./gradlew assembleRelease | |
- name: Build Android ABB Release | |
run: | | |
cd android && ./gradlew bundleRelease | |
env: | |
SIGNING_KEY_ALIAS: ${{ secrets.ANDROID_ALIAS }} | |
SIGNING_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }} | |
SIGNING_STORE_PASSWORD: ${{ secrets.ANDROID_KEY_STORE_PASSWORD }} | |
- name: Sign APK Release | |
id: sign_apk | |
uses: r0adkll/sign-android-release@v1 | |
with: | |
releaseDirectory: android/app/build/outputs/apk/release | |
signingKeyBase64: ${{ secrets.ANDROID_SIGNING_KEY }} | |
alias: ${{ secrets.ANDROID_ALIAS }} | |
keyStorePassword: ${{ secrets.ANDROID_KEY_STORE_PASSWORD }} | |
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }} | |
env: | |
BUILD_TOOLS_VERSION: "33.0.2" | |
- name: Upload APK Artifact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: app-release.apk | |
path: android/app/build/outputs/apk/release/ | |
- name: Upload AAB Artifact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: app-release.aab | |
path: android/app/build/outputs/bundle/release/ |