Skip to content

Commit 668dc2f

Browse files
authored
android.yml
1 parent 6c23a83 commit 668dc2f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/android.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Android CI - Build and Release
2+
3+
on:
4+
push:
5+
branches: [ "develop" ]
6+
pull_request:
7+
branches: [ "develop" ]
8+
9+
jobs:
10+
apk:
11+
name: Generate APK
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2.4.0
16+
- name: Branch name
17+
run: echo running on branch ${GITHUB_REF##*/}
18+
- name: Setup JDK
19+
uses: actions/setup-java@v2.5.0
20+
with:
21+
distribution: temurin
22+
java-version: "11"
23+
- name: Set execution flag for gradlew
24+
run: chmod +x gradlew
25+
- name: Build APK
26+
run: bash ./gradlew assembleDebug --stacktrace
27+
- name: Upload APK
28+
uses: actions/upload-artifact@v1
29+
with:
30+
name: apk
31+
path: app/build/outputs/apk/debug/app-debug.apk

0 commit comments

Comments
 (0)