Skip to content

Commit 4a28ae3

Browse files
authored
Create build-apk.yml
1 parent 9cef968 commit 4a28ae3

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/build-apk.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build APK
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
build:
9+
name: Build & Upload APK
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
16+
- name: Set up JDK
17+
uses: actions/setup-java@v3
18+
with:
19+
distribution: 'temurin'
20+
java-version: '17'
21+
22+
- name: Grant execute permission to gradlew
23+
run: chmod +x ./gradlew
24+
25+
- name: Build release APK
26+
run: ./gradlew assembleRelease
27+
28+
- name: Upload release APK to GitHub release
29+
uses: ncipollo/release-action@v1
30+
with:
31+
artifacts: app/build/outputs/apk/release/app-release.apk
32+
tag: nightly-build
33+
name: "Nightly Build"
34+
allowUpdates: true

0 commit comments

Comments
 (0)