-
Notifications
You must be signed in to change notification settings - Fork 15
69 lines (67 loc) · 2.18 KB
/
build.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Build
on:
workflow_dispatch:
inputs:
appBranch:
description: 'App GitHub branch to build'
required: true
default: 'master'
sdkBranch:
description: 'SDK GitHub branch to build'
required: true
default: 'master'
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
path: mage-ios
- name: Clone MAGE SDK
uses: actions/checkout@master
with:
repository: ngageoint/mage-ios-sdk
path: 'mage-ios-sdk'
fetch-depth: 0
- name: Checkout SDK Branch
run: git checkout ${{ github.event.inputs.sdkBranch }}
working-directory: mage-ios-sdk
- name: Install Utilities
run: |
brew install automake
brew install libtool
- name: Install Dependencies
run: |
gem install xcodeproj
working-directory: mage-ios
- name: Configure Signing Certificate and Provisioning Profiles
run: |
gpg --quiet --batch --yes --decrypt --passphrase="${{ secrets.CERTIFICATE_PASSPHRASE }}" --output development.p12 ./.github/secrets/development.p12.gpg
gpg --quiet --batch --yes --decrypt --passphrase="${{ secrets.PROFILE_PASSPHRASE }}" --output MAGE.mobileprovision ./.github/secrets/MAGE.mobileprovision.gpg
working-directory: mage-ios
- name: Checkout Application Branch
run: git checkout ${{ github.event.inputs.appBranch }}
working-directory: mage-ios
- name: Install Pods
run: |
pod repo update
pod install
working-directory: mage-ios
- name: Build
env:
KEYCHAIN_NAME: "${{ secrets.KEYCHAIN_NAME }}"
KEYCHAIN_PASSWORD: "${{ secrets.KEYCHAIN_PASSWORD }}"
CERTIFICATE_PASSWORD: "${{ secrets.CERTIFICATE_PASSWORD }}"
run: |
fastlane build
working-directory: mage-ios
- name: Bundle Artifacts
run: |
tar -czvf MAGE.xcarchive.tar.gz MAGE.xcarchive/
working-directory: mage-ios/build
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: MAGE.xcarchive.tar.gz
path: mage-ios/build/MAGE.xcarchive.tar.gz