Skip to content

Commit

Permalink
update github actions workflow to publish artifacts to releases
Browse files Browse the repository at this point in the history
  • Loading branch information
llopisdon committed Jul 25, 2021
1 parent 56046f4 commit a21f2f4
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 }}

0 comments on commit a21f2f4

Please sign in to comment.