-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (45 loc) · 1.67 KB
/
deploy.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
name: Deploy App to TestFlight(release) / Shorebird(patch)
on:
push:
branches: [main]
workflow_dispatch:
inputs:
release_type:
description: "Deployment type (release / patch)"
required: true
default: "release"
jobs:
init:
runs-on: macMini
if: ${{ contains(github.event.head_commit.message , '#release') || contains(github.event.head_commit.message , '#patch') || github.event_name == 'workflow_dispatch' }}
name: Initialize repo & flutter
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Initialize flutter
run: |
flutter clean
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
cd ios && pod install && cd ..
release:
runs-on: macMini
needs: init
if: ${{ contains(github.event.head_commit.message , '#release') || (github.event_name == 'workflow_dispatch' && github.event.inputs.release_type == 'release') }}
name: Build & Deploy Release
steps:
- name: Build .ipa using shorebird
run: shorebird release ios -f
- name: Deploy .ipa using fastlane
run: cd ios && bundle exec fastlane beta
env:
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: ${{ secrets.FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD }}
timeout-minutes: 40
patch:
runs-on: macMini
needs: init
if: ${{ contains(github.event.head_commit.message , '#patch') || (github.event_name == 'workflow_dispatch' && github.event.inputs.release_type == 'patch') }}
name: Build & Deploy Patch
steps:
- name: Build & Deploy patch using shorebird
run: shorebird patch ios -f