-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (39 loc) · 1.45 KB
/
publish.yaml
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
name: Publish (Internal)
on:
push:
branches:
- main
jobs:
deploy_internal_android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 17
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 17
- uses: actions/checkout@v2
- name: Set up ruby env
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true
- name: Deploy internally
env:
MAPS_API_KEY: ${{ secrets.MAPS_API_KEY }}
PLACE_API_KEY: ${{ secrets.PLACE_API_KEY }}
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
APP_PLAY_SERVICE_JSON: ${{ secrets.APP_PLAY_SERVICE_JSON }}
APKSIGN_KEYSTORE_BASE64: ${{ secrets.APKSIGN_KEYSTORE_BASE64 }}
APKSIGN_KEYSTORE_PASS: ${{ secrets.APKSIGN_KEYSTORE_PASS }}
APKSIGN_KEY_ALIAS: ${{ secrets.APKSIGN_KEY_ALIAS }}
APKSIGN_KEY_PASS: ${{ secrets.APKSIGN_KEY_PASS }}
CI_RUN_NUMBER: ${{ github.run_number }}
run: |
echo $GOOGLE_SERVICES_JSON_BASE64 | base64 -di > app/google-services.json
echo $APKSIGN_KEYSTORE_BASE64 | base64 -di > release.keystore
export APKSIGN_KEYSTORE=`pwd`/release.keystore
sudo gem install bundler -v 2.4.22
echo $APP_PLAY_SERVICE_JSON > google_play_api_key.json
bundle exec fastlane upload_internal