(Hopefully) address issues with Github Actions #94
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 CI | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
Gradle: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v2 | |
- name: setup jdk | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Make Gradle executable | |
run: chmod +x ./gradlew | |
- name: Bump version | |
uses: chkfung/[email protected] | |
with: | |
gradlePath: app/build.gradle # or app/build.gradle.kts | |
versionCode: ${{github.run_number}} | |
- name: Build Debug APK | |
run: ./gradlew assembleDebug | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
generate_release_notes: true | |
token: ${{ secrets.TOKEN }} | |
files: | | |
app/build/outputs/apk/debug/app-debug.apk |