-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (69 loc) · 2.45 KB
/
beta-builds.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
65
66
67
68
69
70
71
72
73
name: Beta builds
# This workflow is triggered on PR approvals or manually.
on:
workflow_dispatch: # to manually run this workflow
inputs:
platform:
description: Choose platforms for which you want to build
type: choice
options:
- android
- ios
- all
default: "all"
no_codesign:
description: Do not sign code
type: boolean
default: true
deploy_app_distribution:
description: Deploy on app distribution
type: boolean
default: false
deploy_testflight:
description: Deploy on testflight
type: boolean
default: false
deploy_playstore:
description: Deploy on playstore
type: boolean
default: false
self_hosted:
description: Run jobs on self-hosted machine
type: boolean
default: false
pull_request_review:
types: [submitted]
paths-ignore:
- "tools/**" # not going to run this workflow if only tools are updated
- "README.md"
- "test/**"
- "test_driver/**"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
beta-ios:
name: Beta-iOS
if: |
github.event.review.state == 'approved' ||
(inputs.platform == 'all' || inputs.platform == 'ios')
uses: "./.github/workflows/build-deploy-ios.yml"
with:
runs_on: ${{ (inputs.self_hosted || github.event.review.state == 'approved') && 'self-hosted' || 'macos-12' }}
no_codesign: ${{ inputs.no_codesign || false }}
deploy_app_distribution: ${{ inputs.deploy_app_distribution || github.event.review.state == 'approved' }}
deploy_testflight: ${{ inputs.deploy_testflight || false }}
secrets:
ENV_FILE_CONTENT_IOS: "${{ secrets.ENV_FILE_CONTENT_IOS }}"
beta-android:
name: Beta-Android
if: |
github.event.review.state == 'approved' ||
(inputs.platform == 'all' || inputs.platform == 'android')
uses: "./.github/workflows/build-deploy-android.yml"
with:
runs_on: ${{ (inputs.self_hosted || github.event.review.state == 'approved') && 'self-hosted' || 'ubuntu-latest' }}
deploy_app_distribution: ${{ inputs.deploy_app_distribution || github.event.review.state == 'approved' }}
deploy_playstore: ${{ inputs.deploy_playstore || false }}
secrets:
ENV_FILE_CONTENT_ANDROID: "${{ secrets.ENV_FILE_CONTENT_ANDROID }}"