-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1015 Bytes
/
Build.yml
File metadata and controls
37 lines (31 loc) · 1015 Bytes
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
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Make Plist Files
run: |
echo '
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>baseURL</key>
<string>$secrets.BASE_URL</string>
<key>googleMapsAPIKey</key>
<string>$secrets.MAPS_API_KEY</string>
</dict>
</plist>
' >> ./CPR2U/CPR2U/Private.plist
echo '
' >> ./CPR2U/CPR2U/GoogleService-Info.plist
- name: Build Xcode
run: |
pod install --repo-update --clean-install --project-directory=CPR2U/
xcodebuild build -workspace CPR2U/CPR2U.xcworkspace -scheme CPR2U-Workspace -destination 'platform=iOS Simulator,name=iPhone 14,OS=latest'