From 22b98df7e59860b8bed35b30f016fcea9cb8d806 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Thu, 14 Jul 2022 10:27:14 -0700 Subject: [PATCH] Add android build workflow --- .github/workflows/android-build.yml | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/android-build.yml diff --git a/.github/workflows/android-build.yml b/.github/workflows/android-build.yml new file mode 100644 index 00000000..783bf912 --- /dev/null +++ b/.github/workflows/android-build.yml @@ -0,0 +1,34 @@ +name: Android Build +on: + workflow_dispatch: + push: + branches: [ "main" , "android-webview-app-ts"] + paths: [ "mobile", "frontend" ] + pull_request: + branches: [ "main" , "android-webview-app-ts"] + paths: [ "mobile", "frontend" ] + +jobs: + build-android: + runs-on: ubuntu-latest + steps: + - name: 'Checkout' + uses: actions/checkout@v3 + - name: 'Download main.js Artifact' + uses: dawidd6/action-download-artifact@v2 + with: + workflow: frontend-build.yml + workflow_conclusion: success + name: main-js + path: mobile/html/Web.bundle/js/ + - name: 'Install npm dependencies' + run: | + npm install + - name: 'Build Android Release' + run: | + cd android && ./gradlew assembleRelease + - name: 'Upload .apk Artifact' + uses: actions/upload-artifact@v3 + with: + name: app-release.apk + path: android/app/build/outputs/apk/release/ \ No newline at end of file