-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (24 loc) · 962 Bytes
/
e2e-ios.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
name: "[ios] E2E Test Nativebrik SDK"
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
publish-e2e-app:
runs-on: macos-13
environment:
name: Only Main
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0'
- name: Checkout
uses: actions/checkout@v3
- name: Build Nativebrik E2E
run: xcodebuild -workspace ./ios/nativebrik.xcworkspace -scheme E2E -configuration Release -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.0.1' -derivedDataPath ./.dist
- name: Zip app
run: |
cd .dist/Build/Products/Release-iphonesimulator/ && zip -r E2E.app.zip ./E2E.app
- name: Uploade to magicpod
run: |
curl -L -X POST -F "[email protected]/Build/Products/Release-iphonesimulator/E2E.app.zip" -H "Authorization: Token ${{ secrets.MAGICPOD_API_TOKEN }}" "https://app.magicpod.com/api/v1.0/Nativebrik.inc/Nativebrik/upload-file/"