-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (46 loc) · 1.95 KB
/
android-cd.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
name: android-cd
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
environment: Android CI/CD
steps:
- uses: actions/checkout@v2
- name: Create Google Services JSON File
env:
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
run: |
echo "$GOOGLE_SERVICES_JSON" > google-services.json.b64
base64 -d -i google-services.json.b64 > ./app/google-services.json
- name: Create Firebase Service Credentials file
env:
FIREBASE_CREDENTIALS: ${{ secrets.FIREBASE_CREDENTIALS }}
run: |
echo "$FIREBASE_CREDENTIALS" > firebase_credentials.json.b64
base64 -d -i firebase_credentials.json.b64 > firebase_credentials.json
- name: Create LocalProperites
env:
CREDENTIAL_WEB_CLIENT_ID: ${{ secrets.CREDENTIAL_WEB_CLIENT_ID }}
MISSION_MATE_BASE_URL: ${{ secrets.MISSION_MATE_BASE_URL }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
run: |
echo CREDENTIAL_WEB_CLIENT_ID=\"$CREDENTIAL_WEB_CLIENT_ID\" > ./local.properties
echo MISSION_MATE_BASE_URL=\"$MISSION_MATE_BASE_URL\" >> ./local.properties
echo SIGNING_STORE_PASSWORD=$SIGNING_STORE_PASSWORD >> ./local.properties
echo SIGNING_KEY_PASSWORD=$SIGNING_KEY_PASSWORD >> ./local.properties
echo SIGNING_KEY_ALIAS=$SIGNING_KEY_ALIAS >> ./local.properties
- name: Generate Keystore file from Github Secrets
env:
KEYSTORE: ${{ secrets.KEYSTORE_BASE64 }}
run: |
echo "$KEYSTORE" > ./mission-mate-keystore.b64
base64 -d -i ./mission-mate-keystore.b64 > ./app/mission-mate-keystore.jks
- run: fastlane publishDevDebug
env:
APP_ID: ${{ secrets.DEV_APP_ID }}