Skip to content

Commit dcf1599

Browse files
authored
Add workflow for publishing APK in release
1 parent ba8518b commit dcf1599

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/Publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
name: Publish binaries
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: set up JDK 1.8
16+
uses: actions/setup-java@v1
17+
with:
18+
java-version: 1.8
19+
20+
- name: Grant Permission to Execute
21+
run: chmod +x gradlew
22+
23+
- name: Build debug APK
24+
run: bash ./gradlew assembleDebug --stacktrace
25+
26+
- name: Upload APK to release
27+
uses: svenstaro/upload-release-action@v1-release
28+
with:
29+
repo_token: ${{ secrets.GITHUB_TOKEN }}
30+
file: app/build/outputs/apk/debug/app-debug.apk
31+
asset_name: app.apk
32+
tag: ${{ github.ref }}
33+
overwrite: true

0 commit comments

Comments
 (0)