-
-
Notifications
You must be signed in to change notification settings - Fork 92
46 lines (44 loc) · 1.12 KB
/
fastlane-metadata.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
46
name: Fastlane Metadata
on:
push:
branches:
- main
- "[0-9]+.[0-9]+.x"
paths:
- "fastlane/**"
- ".github/workflows/fastlane-metadata.yaml"
pull_request:
branches:
- main
- "[0-9]+.[0-9]+.x"
paths:
- "fastlane/**"
- ".github/workflows/fastlane-metadata.yaml"
jobs:
validate:
name: Validate
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: ashutoshgngwr/validate-fastlane-supply-metadata@v2
with:
usePlayStoreLocales: true
play-store-upload:
name: Play Store Upload
needs: validate
if: github.event_name == 'push'
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- uses: actions/checkout@v4
- run: bundle install
- run: echo "$SERVICE_ACCOUNT_KEY" > service-account-key.json
env:
SERVICE_ACCOUNT_KEY: ${{ secrets.SERVICE_ACCOUNT_KEY }}
- run: bundle exec fastlane upload_metadata
- if: ${{ always() }}
run: rm -f service-account-key.json