-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.14 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: iOS CI
on:
push:
branches: [ main ]
jobs:
build:
runs-on: macOS-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
bundler-cache: true
- name: Cache Fastlane
uses: actions/cache@v2
with:
path: ~/.gem
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Install dependencies
run: |
gem install bundler
bundle install --without=documentation
- name: Build and Test
run: |
xcodebuild -workspace YourWorkspace.xcworkspace -scheme YourScheme -sdk iphoneos -configuration AppStoreDistribution archive -archivePath $PWD/build/YourApp.xcarchive
- name: Export .ipa
run: |
xcodebuild -exportArchive -archivePath $PWD/build/YourApp.xcarchive -exportOptionsPlist ExportOptions.plist -exportPath $PWD/build
- name: Install Fastlane
run: bundle exec fastlane init
- name: Upload to TestFlight
run: bundle exec fastlane pilot upload