Skip to content

Only run CI task on tags #97

Only run CI task on tags

Only run CI task on tags #97

Workflow file for this run

name: Android CI
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
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
files: |
app/build/outputs/apk/debug/app-debug.apk
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}