-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (31 loc) · 1.19 KB
/
playstore.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
name: PlayStore release
on:
push:
branches:
- playstore-cd
jobs:
playstore:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0.2"
bundler-cache: true
- name: Restore json key # make sure that you restore the key in the correct directory (ref. fastlane/Appfile)
run: echo "${{ secrets.GOOGLE_API_PUB_JSON_BASE64 }}" | base64 --decode > ${{ github.workspace }}/service-account.json
- name: Restore keystore # make sure that you restore the key in the correct directory (same as app/gradle.properties)
run: |
echo "${{ secrets.SIGN_KEY }}" > ${{ github.workspace }}/myKeystore.keystore.asc
echo "${{ secrets.SIGN_PASSWORD }}" > ${{ github.workspace }}/myKeystore.keystore
- name: Set up environment
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'
- name: Gradle cache
uses: gradle/actions/setup-gradle@v3
- name: Upload app to Play Store (Internal track)
run: bundle exec fastlane internal