-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.23 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
45
46
name: Android CI
on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
env:
RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true
submodules: 'recursive'
- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Access Release Keystore
if: ${{ env.RELEASE_KEYSTORE != '' }}
run: |
echo "${RELEASE_KEYSTORE}" | base64 -d > keystore.jks
- name: Build APK
run: |
chmod +x gradlew
./gradlew build bundle
- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: apk
path: |
app/build/outputs/apk
app/build/outputs/bundle
app/build/outputs/mapping