-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (48 loc) · 1.79 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
name: "Build iOS"
on:
# manual trigger but change to any supported event
# see addl: https://www.andrewhoog.com/post/how-to-build-react-native-android-app-with-github-actions/#3-run-build-workflow
workflow_dispatch:
release:
types: [published]
jobs:
build_ios:
runs-on: macos-latest
steps:
# this was more debug as was curious what came pre-installed
# GitHub shares this online, e.g. https://github.com/actions/runner-images/blob/macOS-12/20230224.1/images/macos/macos-12-Readme.md
- name: check Xcode version
run: /usr/bin/xcodebuild -version
- name: checkout repository
uses: actions/checkout@v3
- name: Install Fastlane and Fix CocoaPods
run: |
sudo gem install cocoapods -v 1.15.2
sudo gem install fastlane -NV
fastlane --version
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Cache npm dependencies
uses: actions/cache@v2
id: cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install dependencies
run: npm install
- name: Expo Prebuild [iOS]
run: |
npx expo prebuild --platform ios --npm
- name: Fastlane Beta [iOS]
run: fastlane beta
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
ASC_KEY_ID: ${{ secrets.ASC_KEY_ID }}
ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
ASC_KEY_BASE64: ${{ secrets.ASC_KEY_BASE64 }}
GIT_AUTHORIZATION: ${{ secrets.GIT_AUTHORIZATION }}
CHANGELOG: ${{ github.event.release.body }}