-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (60 loc) · 2.17 KB
/
deployRelease.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
name: Release to Play store
on:
workflow_dispatch:
push:
branches: [ "release/**" ]
jobs:
build:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v3
- name: Retrieve the google services file and decode it to a file
env:
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }}
run: |
rm app/src/production/google-services.json
echo $GOOGLE_SERVICES | base64 --decode > app/src/production/google-services.json
- name: Write the play store json
env:
JSON_KEY: ${{ secrets.JSON_KEY }}
run: |
echo $JSON_KEY | base64 --decode > fastlane/pc-store.json
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Update Bundler
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6.8'
bundler-cache: false
- name: Install bundle gems
run: bundle install
- name: Run Fastlane Firebase
env:
GMP_KEY: ${{ secrets.GMP_KEY }}
AUTH_CLIENT_ID: ${{ secrets.AUTH_CLIENT_ID }}
AUTH_CLIENT_SECRET: ${{ secrets.AUTH_CLIENT_SECRET }}
PUBLISHABLE_KEY: ${{ secrets.PUBLISHABLE_KEY }}
APP_ID: ${{ secrets.APP_ID }}
FIREBASEAPPDISTRO_CLI_TOKEN: ${{ secrets.FIREBASEAPPDISTRO_CLI_TOKEN }}
KEYSTORE_FILE: '${{ github.workspace }}/permanent.keystore'
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
MIXPANEL_TOKEN: ${{ secrets.MIXPANEL_TOKEN }}
run: |
touch local.properties
echo GMP_KEY="$GMP_KEY" >> local.properties
echo AUTH_CLIENT_ID="$AUTH_CLIENT_ID" >> local.properties
echo AUTH_CLIENT_SECRET="$AUTH_CLIENT_SECRET" >> local.properties
echo PUBLISHABLE_KEY="$PUBLISHABLE_KEY" >> local.properties
echo MIXPANEL_TOKEN="$MIXPANEL_TOKEN" >> local.properties
bundle exec fastlane playStore
shell: bash