-
Notifications
You must be signed in to change notification settings - Fork 99
43 lines (34 loc) · 1.03 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
name: Android CI
on:
push:
branches:
- master
- bugfix/*
- feature/*
pull_request_target:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'adopt'
- name: Make Gradle executable
run: chmod +x ./gradlew
- name: Set mapbox token
env:
MAPBOX_DOWNLOADS_TOKEN: ${{ secrets.MAPBOX_DOWNLOADS_TOKEN }}
shell: bash
run: echo MAPBOX_DOWNLOADS_TOKEN=${MAPBOX_DOWNLOADS_TOKEN} >> gradle.properties
- name: Create google-service.json file
run: cat /home/runner/work/android-app/android-app/app/src/debug/google-services.json | base64
- name: Set google-service.json data
env:
DATA: ${{ secrets.GOOGLE_SERVICES_JSON }}
run: echo $DATA > /home/runner/work/android-app/android-app/app/src/debug/google-services.json
- name: Build
run: ./gradlew clean assembleDebug --stacktrace