-
Notifications
You must be signed in to change notification settings - Fork 28
67 lines (56 loc) · 2.02 KB
/
deploy-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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Deploy iOS
on:
workflow_dispatch:
branches:
- internal
- alpha
- beta
- master
push:
branches:
- internal
- alpha
- beta
- master
jobs:
build-ios:
name: Deploy iOS
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup NodeJS
uses: actions/setup-node@v1
with:
node-version: "14.x"
- run: yarn install
- run: pod install
working-directory: packages/mobile-app/ios
# install fastlane dependencies
- run: gem install bundler
- run: bundle update fastlane
working-directory: packages/mobile-app/ios
- name: Encrypt GPG secure files
run: |
brew install [email protected]
echo ${{ secrets.SUPER_SECRET_PASSWORD }} | gpg1 --no-tty --passphrase-fd 0 packages/mobile-app/.env.internal.gpg
echo ${{ secrets.SUPER_SECRET_PASSWORD }} | gpg1 --no-tty --passphrase-fd 0 packages/mobile-app/.env.alpha.gpg
echo ${{ secrets.SUPER_SECRET_PASSWORD }} | gpg1 --no-tty --passphrase-fd 0 packages/mobile-app/.env.beta.gpg
echo ${{ secrets.SUPER_SECRET_PASSWORD }} | gpg1 --no-tty --passphrase-fd 0 packages/mobile-app/.env.production.gpg
echo ${{ secrets.SUPER_SECRET_PASSWORD }} | gpg1 --no-tty --passphrase-fd 0 packages/mobile-app/ios/AuthKey_3Q9U495BMY.p8.gpg
- name: Fix match prompt issue
run: echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- uses: actions/setup-ruby@v1
with:
ruby-version: "2.x"
- name: Fastlane
uses: maierj/[email protected]
with:
lane: "ios beta"
subdirectory: "packages/mobile-app/ios"
env:
TRAVIS_BRANCH: ${{ github.ref }}
TRAVIS: "true"
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}