diff --git a/.github/workflows/rn-build-apk.yml b/.github/workflows/rn-build-apk.yml new file mode 100644 index 00000000..5749d5bd --- /dev/null +++ b/.github/workflows/rn-build-apk.yml @@ -0,0 +1,40 @@ +name: "RN Android Build Apk" + +on: + # push: + # branches: + # - master + # paths: + # - "client/mobile/**" + workflow_dispatch: + +jobs: + install-dependencies: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./client/mobile + steps: + - uses: actions/checkout@v3 + - name: Install npm dependencies + run: | + yarn + build-android: + needs: install-dependencies + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./client/mobile + steps: + - uses: actions/checkout@v3 + - name: Install npm dependencies + run: | + yarn + - name: Build Android Release + run: | + cd android && ./gradlew assembleRelease + - name: Upload Artifact + uses: actions/upload-artifact@v1 + with: + name: app-release.apk + path: android/app/build/outputs/apk/release/