-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (45 loc) · 1.37 KB
/
go_live.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
# Promotes builds in App Store and Google Play to production
name: '[Release] Go Live'
on:
workflow_dispatch:
# Tuesdays 14:00 UTC, 10AM ET, 7AM PT
schedule:
- cron: '0 14 * * 2'
jobs:
get_workflow_environment:
runs-on: ubuntu-latest
outputs:
environment_name: ${{ steps.check-environment.outputs.env_name }}
steps:
- name: Check environment
id: check-environment
run: |
if [[ ${{ github.event_name }} == 'workflow_dispatch' ]]; then
echo ::set-output name=env_name::'manual-release'
else
echo ::set-output name=env_name::''
fi
# This is a separate job because the build_ios & build_android workflows are already reserving "environment"
check_environment:
name: Check environment protections
needs: [get_workflow_environment]
environment: ${{ needs.get_workflow_environment.outputs.environment_name }}
runs-on: ubuntu-latest
steps:
- run: echo "foo"
ios:
name: iOS Go Live
needs: [get_workflow_environment, check_environment]
uses: ./.github/workflows/build_ios.yml
secrets: inherit
with:
lane: release
ref: main
android:
name: Android Go Live
needs: [get_workflow_environment, check_environment]
uses: ./.github/workflows/build_android.yml
secrets: inherit
with:
lane: release
ref: main