diff --git a/.github/workflows/text.yml b/.github/workflows/text.yml index e69de29..cf45fef 100644 --- a/.github/workflows/text.yml +++ b/.github/workflows/text.yml @@ -0,0 +1,35 @@ +name: Build APK + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Pull Git Submodules + run: | + git submodule update --init --recursive + + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + + - name: Set up Gradle + uses: gradle/gradle-build-action@v2 + + - name: Build APK + run: | + cd android/app + ./gradlew assembleDebug --stacktrace + + - name: Upload APK + uses: actions/upload-artifact@v2 + with: + name: app-apks + path: android/app/build/outputs/apk/debug/*.apk \ No newline at end of file