-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.48 KB
/
debug_build.yml
File metadata and controls
47 lines (44 loc) · 1.48 KB
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
name: Testing APK
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Setup JDK
uses: actions/setup-java@v3.13.0
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Create local gradle properties files
run: touch local.properties
- name: Add Google Maps API Key
run: echo "MAPS_API_KEY=${{secrets.MAPS_API_KEY}}" >> local.properties
# Here we need to decode keystore.jks from base64 string and place it
# in the folder specified in the release signing configuration
- name: Decode Keystore
id: decode_keystore
uses: timheuer/base64-to-file@v1.2.3
with:
fileName: 'android_keystore.jks'
fileDir: '/home/runner/work/<<project name>>/<<project name>>/app/keystore/'
encodedString: ${{ secrets.SIGNING_KEYSTORE }}
- name: Build debug APK
run: ./gradlew build -x lint -x lintVitalRelease
env:
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: app-debug-build
path: app/build/outputs/apk/debug/app-debug.apk