Skip to content

Merge pull request #38 from argyle-systems/update-readme #46

Merge pull request #38 from argyle-systems/update-readme

Merge pull request #38 from argyle-systems/update-readme #46

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"}'