-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 970 Bytes
/
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
name: Build
on:
push: { branches: ['alpha', 'beta', 'main'] }
pull_request: { branches: ['alpha', 'beta', 'main'] }
jobs:
build:
name: Xcode Build
runs-on: macos-13
steps:
- name: Select Xcode Version
run: sudo xcrun xcode-select -s /Applications/Xcode_14.3.app
- name: Set Environment Variables
run: |
APP_NAME="BeezyLight"
echo "APP_NAME=${APP_NAME}" >> $GITHUB_ENV
echo "XCARCHIVE_PATH=${PWD}/${APP_NAME}.xcarchive" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@v3
- name: Run xcode-build Script
run: './Scripts/xcode-build build "$XCARCHIVE_PATH"'
- name: Upload Archive to Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ env.APP_NAME }}.xcarchive
path: ${{ env.XCARCHIVE_PATH }}
if-no-files-found: error
- name: Check Git Status
run: git status --porcelain