44 push :
55 branches :
66 - main
7+ release :
8+ types : [published]
79
810 workflow_dispatch :
911 inputs :
4850 name : Build and Distribute Dogfooding Ios
4951 runs-on : macos-15
5052 timeout-minutes : 60
51- if : ${{ github.event_name == 'push' || inputs.build_ios == true }}
53+ if : ${{ github.event_name == 'push' || github.event_name == 'release' || inputs.build_ios == true }}
5254 steps :
5355 - name : Install Bot SSH Key
5456 uses :
webfactory/[email protected] 8890 - name : Set build flavor to Env
8991 run : |
9092 if [[ ${{ github.event_name == 'workflow_dispatch' }} == true ]]; then
91- FLAVOR=${{ inputs.flavor }}
93+ FLAVOR=${{ inputs.flavor }}
94+ elif [[ ${{ github.event_name == 'release' }} == true ]]; then
95+ FLAVOR=prod
9296 else
93- FLAVOR=beta
97+ FLAVOR=beta
9498 fi
9599 echo "FLAVOR=$FLAVOR" >> $GITHUB_ENV
96100
@@ -103,7 +107,7 @@ jobs:
103107 name : Build and Distribute Dogfooding Android
104108 runs-on : ubuntu-latest
105109 timeout-minutes : 30
106- if : ${{ github.event_name == 'push' || inputs.build_android == true }}
110+ if : ${{ github.event_name == 'push' || github.event_name == 'release' || inputs.build_android == true }}
107111 steps :
108112 - name : Checkout code
109113 uses : actions/checkout@v3
@@ -146,9 +150,11 @@ jobs:
146150 - name : Set build flavor to Env
147151 run : |
148152 if [[ ${{ github.event_name == 'workflow_dispatch' }} == true ]]; then
149- echo "FLAVOR=${{ inputs.flavor }}" >> $GITHUB_ENV
153+ echo "FLAVOR=${{ inputs.flavor }}" >> $GITHUB_ENV
154+ elif [[ ${{ github.event_name == 'release' }} == true ]]; then
155+ echo "FLAVOR=prod" >> $GITHUB_ENV
150156 else
151- echo "FLAVOR=beta" >> $GITHUB_ENV
157+ echo "FLAVOR=beta" >> $GITHUB_ENV
152158 fi
153159
154160 - name : Build and Distribute
@@ -160,7 +166,7 @@ jobs:
160166 name : Build and Deploy Dogfooding Web
161167 runs-on : ubuntu-latest
162168 timeout-minutes : 10
163- if : ${{ github.event_name == 'push' || inputs.build_web == true }}
169+ if : ${{ github.event_name == 'push' || github.event_name == 'release' || inputs.build_web == true }}
164170 steps :
165171 - name : Checkout code
166172 uses : actions/checkout@v3
0 commit comments