build: bump gradle version #60
This file contains hidden or 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 Pull Request & Master CI | |
on: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
test: | |
name: Run Unit Tests | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: set up JDK 1.11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.11 | |
- name: build test | |
run: bash ./gradlew build | |
apk: | |
name: Generate APK | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: set up JDK 1.11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.11 | |
- name: Build debug APK | |
run: bash ./gradlew assembleDebug --stacktrace | |
- name: Upload APK | |
uses: actions/upload-artifact@v1 | |
with: | |
name: app | |
path: app/build/outputs/apk/debug/app-debug.apk | |
- name: Bump version and push tag | |
id: tag_version | |
uses: mathieudutour/github-tag-action@v5.6 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: go-semantic-release | |
uses: marvinpinto/action-automatic-releases@v1.2.1 | |
with: | |
automatic_release_tag: ${{ steps.tag_version.outputs.new_tag }} | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
prerelease: true | |
files: app/build/outputs/apk/debug/app-debug.apk |