-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.52 KB
/
build-ios-ipa.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
47
48
49
50
name: build-ios-ipa
on:
push:
branches:
- master
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Import Codesigning Certificate
uses: apple-actions/import-codesign-certs@v1
with:
p12-file-base64: ${{ secrets.ARGYLE_LINK_IOS_SIGNING_CERT_P12 }}
p12-password: ${{ secrets.ARGYLE_LINK_IOS_SIGNING_CERT_PASS }}
- name: Install Provisioning Profile
uses: akiojin/[email protected]
with:
base64: ${{ secrets.ARGYLE_LINK_IOS_SIGNING_PROVISIONING }}
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0'
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.7.10'
channel: 'stable'
architecture: x64
- run: pushd example; flutter pub get
- run: pushd example; flutter build ipa --dart-define=IS_INTERNAL_JSON_BUILD=true --export-options-plist=./ios/exportOptions.plist
- name: Archive IPA
uses: actions/upload-artifact@v3
with:
name: ipa-app-release
path: example/build/ios/ipa/argyle_link_flutter_example.ipa
- name: Upload app to browserstack
run: |
curl \
-u ${{ secrets.ARGYLE_MOBILE_RUN_BS_USER }}:${{ secrets.ARGYLE_MOBILE_RUN_BS_KEY }} \
-X POST "https://api-cloud.browserstack.com/app-automate/upload" \
-F "file=@example/build/ios/ipa/argyle_link_flutter_example.ipa" \
-F 'data={"custom_id": "ios_flutter_latest"}'