-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (49 loc) · 1.73 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
name: Deploy iOS
on:
workflow_dispatch:
push:
branches:
- internal
- alpha
- beta
- master
concurrency:
group: deploy-ios-${{ github.ref }}
cancel-in-progress: false
jobs:
build-ios:
name: Deploy iOS
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/actions/install-dependencies
- name: Extract branch name
shell: bash
run: |
if [[ ${{ github.ref }} == 'refs/heads/master' ]]; then
echo "lane=production" >> $GITHUB_OUTPUT
else
echo "lane=internal" >> $GITHUB_OUTPUT
fi
id: extract_branch
- name: Encrypt GPG secure files
run: |
brew install [email protected]
echo ${{ secrets.SUPER_SECRET_PASSWORD }} | gpg1 --no-tty --passphrase-fd 0 ios/AuthKey_3Q9U495BMY.p8.gpg
echo ${{ secrets.SUPER_SECRET_PASSWORD }} | gpg1 --no-tty --passphrase-fd 0 -o ios/GoogleService-Info.${{ steps.extract_branch.outputs.lane }}.plist ios/GoogleService-Info.${{ steps.extract_branch.outputs.lane }}.plist.gpg
- name: Fix match prompt issue
run: echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- name: Fastlane
uses: maierj/[email protected]
with:
lane: 'ios deploy --env ${{ steps.extract_branch.outputs.lane }}'
subdirectory: '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 }}
CI: true