-
Notifications
You must be signed in to change notification settings - Fork 6
79 lines (69 loc) · 1.83 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Android CI
on:
push:
branches:
- master
- release
- develop
tags:
- '**'
paths-ignore:
- '**.md'
- '**.yml'
pull_request:
branches:
- master
- release
- develop
jobs:
build:
runs-on: [ubuntu-latest]
timeout-minutes: 30
steps:
- uses: yumis-coconudge/clean-workspace-action@v1
- uses: actions/checkout@v3
with:
submodules: true
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Apply Signing
env:
ALIAS: ${{ secrets.ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }}
run: ./.github/apply_signing.sh
# Build with Gradle
- name: Build with Gradle
env:
BUILD_NUMBER: ${{github.run_number}}
BUILD_VERSION: ${{github.ref_name}}
run: ./gradlew assembleRelease bundleRelease check lint --stacktrace
# Archive android artifacts
- name: Archive android artifacts Product
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: actions/upload-artifact@v4
with:
name: android-release
path: |
**/*.aab
**/*.apk
upload:
if: startsWith(github.ref, 'refs/tags/')
runs-on: [ubuntu-latest]
needs: [build]
timeout-minutes: 30
steps:
- uses: actions/download-artifact@v4
- name: Draft a new release
uses: softprops/action-gh-release@v1
with:
files: |
**/*.apk
**/*.aab