-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (47 loc) · 1.66 KB
/
deploy-qa.yml
File metadata and controls
55 lines (47 loc) · 1.66 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
48
49
50
51
52
53
54
55
# .github/workflows/deploy-qa.yml
name: Deploy QA Build to Firebase
on:
push:
branches:
- 'release/**'
workflow_dispatch:
jobs:
deploy_qa:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
- name: Create required files from secrets
env:
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
DEBUG_KEYSTORE_BASE64: ${{ secrets.DEBUG_KEYSTORE_BASE64 }}
LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }}
run: |
printf "%s" "$GOOGLE_SERVICES_JSON" > app/google-services.json
mkdir -p keystore
echo "$DEBUG_KEYSTORE_BASE64" | base64 --decode > keystore/hilingual-debug-key.jks
printf "%s" "$LOCAL_PROPERTIES" > local.properties
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '4.0.0'
bundler-cache: true
- name: Run unit tests
run: ./gradlew testDebugUnitTest
- name: Deploy to Firebase App Distribution
env:
FIREBASE_APP_ID_DEBUG: ${{ secrets.FIREBASE_APP_ID_DEBUG }}
FIREBASE_SERVICE_ACCOUNT_JSON: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_JSON }}
run: |
printf "%s" "$FIREBASE_SERVICE_ACCOUNT_JSON" > firebase_credentials.json
export FIREBASE_SERVICE_CREDENTIALS_JSON_PATH="$(pwd)/firebase_credentials.json"
bundle exec fastlane android qa