Skip to content

Commit

Permalink
Add workflow for publishing APK in release
Browse files Browse the repository at this point in the history
  • Loading branch information
PatilShreyas committed Jun 19, 2020
1 parent ba8518b commit dcf1599
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish

on:
push:
tags:
- '*'

jobs:
build:
name: Publish binaries
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Grant Permission to Execute
run: chmod +x gradlew

- name: Build debug APK
run: bash ./gradlew assembleDebug --stacktrace

- name: Upload APK to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: app/build/outputs/apk/debug/app-debug.apk
asset_name: app.apk
tag: ${{ github.ref }}
overwrite: true

0 comments on commit dcf1599

Please sign in to comment.