-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.04 KB
/
android.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build & Publish APK
on:
push:
branches:
- main
jobs:
Gradle:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: setup jdk
uses: actions/setup-java@v1
with:
java-version: 17
- name: Make Gradle executable
run: chmod +x ./gradlew
- name: Build Release APK
run: ./gradlew assembleRelease
- name: Build Debug APK
run: ./gradlew assembleDebug
- name: version
run: echo "CUR_VERSION=$(grep -o -E 'versionName = \"[[:digit:]\.]+\"' app/build.gradle.kts | grep -o -E '[[:digit:]\.]+')" >> $GITHUB_OUTPUT
id: version
- name: Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
make_latest: true
tag_name: ${{ steps.version.outputs.CUR_VERSION }}
files: |
app/build/outputs/apk/release/app-release-unsigned.apk
app/build/outputs/apk/debug/app-debug-unsigned.apk
permissions:
contents: write