diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index ade76fa..e32988e 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -1,16 +1,13 @@ name: Android CI -on: +on: push: - branches: [ main ] - pull_request: - branches: [ main ] + tags: + - '*' jobs: build: - runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 - name: set up JDK 11 @@ -21,5 +18,15 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew + - name: Build with Gradle - run: ./gradlew build + run: ./gradlew assembleDebug + + - name: GH Release + uses: softprops/action-gh-release@v0.1.5 + if: startsWith(github.ref, 'refs/tags/') + with: + files: app/build/outputs/apk/debug/app-debug.apk + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +