-
Notifications
You must be signed in to change notification settings - Fork 1
83 lines (69 loc) · 2.51 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: build-ios-ipa
on:
workflow_dispatch:
push:
branches: [master]
jobs:
build:
runs-on: macos-latest
steps:
- uses: maxim-lobanov/[email protected]
with:
xcode-version: '14.2'
- uses: actions/[email protected]
- name: Install npm dependencies and add dummy version to package.json
run: |
sed -i.bak "s/%LINK_VERSION%/0.0.1/g" package.json
cd example
npm install
- name: Overwrite index.js
run: |
cd example
rm index.js
mv json-demo-build.js index.js
- name: Overwrite node module
run: |
rsync -Rr . example/node_modules/@argyleio/argyle-plugin-react-native
- name: Import Codesigning Certificate
uses: apple-actions/import-codesign-certs@v2
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 }}
- name: Cocoapods install
run: |
cd example/ios
pod install
- name: Build App
run: |
cd example/ios
xcodebuild -workspace LinkReactNative.xcworkspace -scheme LinkReactNative -configuration Release -sdk iphoneos -archivePath demo.xcarchive archive CODE_SIGN_STYLE=Manual
xcodebuild -exportArchive -archivePath ./demo.xcarchive -exportOptionsPlist exportOptions.plist -exportPath build-demo
- name: Archive IPA
uses: actions/[email protected]
with:
name: ipa-LinkReactNative
path: example/ios/build-demo/LinkReactNative.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/ios/build-demo/LinkReactNative.ipa" \
-F 'data={"custom_id": "ios_react_latest"}'
trigger-auto-tests:
needs: build
runs-on: ubuntu-latest
steps:
- uses: convictional/[email protected]
with:
owner: argyle-systems
repo: argyle-qa-mobile
workflow_file_name: test_dev_rn_ios.yaml
ref: master
client_payload: '{"id": "auto-trigger-ios-rn-tests"}'
github_token: ${{ secrets.ARGYLE_LINK_QA_WORKFLOW_TRIGGER }}
wait_workflow: false