Skip to content

Commit cdeb745

Browse files
committed
feat(ci): Build APK for push and release
1 parent c3b9976 commit cdeb745

File tree

4 files changed

+51
-17
lines changed

4 files changed

+51
-17
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build APK
2+
3+
on:
4+
push
5+
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- name: Set up JDK
14+
uses: actions/setup-java@v2
15+
with:
16+
distribution: 'zulu'
17+
java-version: 11
18+
- name: Build the app
19+
run: ./gradlew assembleDebug assemble
20+
- name: Upload apk as asset
21+
uses: actions/upload-artifact@v2
22+
with:
23+
name: APKs
24+
path: ./app/build/outputs/apk/**/*.apk

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: Set up JDK
16+
uses: actions/setup-java@v2
17+
with:
18+
distribution: 'zulu'
19+
java-version: 11
20+
- name: Build the app
21+
run: ./gradlew assemble
22+
- name: Upload APK to release
23+
uses: "marvinpinto/action-automatic-releases@latest"
24+
with:
25+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
26+
files: |
27+
app/build/outputs/apk/release/*.apk

.idea/deploymentTargetDropDown.xml

Lines changed: 0 additions & 17 deletions
This file was deleted.

gradlew

100644100755
File mode changed.

0 commit comments

Comments
 (0)