-
Notifications
You must be signed in to change notification settings - Fork 3
74 lines (64 loc) · 2.47 KB
/
build-app.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
70
71
72
73
74
name: Build and Deploy
on:
push:
branches:
- "testflight"
- "ci"
jobs:
build:
runs-on: macos-13
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0 # all history
fetch-tags: true
# - name: Install Homebrew Dependencies
# run: |
# env HOMEBREW_NO_AUTO_UPDATE=1 brew install xcbeautify
# - name: Select Xcode version
# run: sudo xcode-select -s '/Applications/Xcode_15.0.1.app/Contents/Developer'
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2.2"
bundler-cache: true
bundler: "2.2.27"
rubygems: "latest"
cache-version: 1
# - name: Update fastlane
# run: bundle update fastlane
# - name: Cache Xcode Data
# uses: irgaly/xcode-cache@v1
# with:
# key: xcode-cache-deriveddata-${{ github.workflow }}-${{ github.sha }}
# restore-keys: xcode-cache-deriveddata-${{ github.workflow }}-
- name: fastlane Deploy to Testflight
run: bundle exec fastlane CI_TO_TESTFLIGHT_DEPLOY
env:
GIT_AUTHORIZATION: ${{ secrets.GIT_AUTHORIZATION }}
DEVELOPER_APPLE_ID: ${{ secrets.DEVELOPER_APPLE_ID }}
DEVELOPER_APP_IDENTIFIER: ${{ secrets.DEVELOPER_APP_IDENTIFIER }}
PROVISIONING_PROFILE_SPECIFIER: ${{ secrets.PROVISIONING_PROFILE_SPECIFIER }}
APPLE_ISSUER_ID: ${{ secrets.APPLE_ISSUER_ID }}
APPLE_KEY_ID: ${{ secrets.APPLE_KEY_ID }}
APPLE_KEY_CONTENT: ${{ secrets.APPLE_KEY_CONTENT }}
MATCH_KEYCHAIN_USER: ${{ secrets.MATCH_KEYCHAIN_USER }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
MATCH_CERTS_URL_LUNAR: ${{ secrets.MATCH_CERTS_URL_LUNAR }}
ASC_P8_KEY_ENCODED: ${{ secrets.ASC_P8_KEY_ENCODED }}
REPO_GITHUB_TOKEN: ""
LOCAL_KEYCHAIN_PASS: ${{ secrets.LOCAL_KEYCHAIN_PASS }}
# - run: git diff origin/testflight
- run: git diff --color origin/ci
- name: Archive IPA and dSYM artifacts
uses: actions/upload-artifact@v3
with:
name: lunar-artifacts
path: |
${{ github.workspace }}/Lunar.ipa
${{ github.workspace }}/Lunar.app.dSYM.zip
# - name: Output build summary
# run: |
# echo 'Build Summary' >> $GITHUB_STEP_SUMMARY