forked from rooootdev/lara
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (65 loc) · 1.89 KB
/
Copy pathmain.yml
File metadata and controls
70 lines (65 loc) · 1.89 KB
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
name: Xcode - Build
on:
push:
pull_request:
workflow_dispatch:
inputs:
release__nightly:
description: Create a nightly release
type: boolean
required: false
jobs:
build:
name: Build using xcodebuild command
runs-on: macos-latest
env:
scheme: lara
outputs:
artifact: ${{ env.scheme }}.ipa
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.2'
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Generate Xcode Project
run: |
if [ ! -f ${{ env.scheme }}.xcodeproj/project.pbxproj ]; then
brew install xcodegen
xcodegen generate --spec project.yml
fi
- name: Build app
run: |
chmod +x ./ipabuild.sh
./ipabuild.sh
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.scheme }}.ipa
path: ${{ env.scheme }}.ipa
release__nightly:
name: Nightly Release
permissions:
contents: write
if: inputs.release__nightly || github.event_name == 'push'
runs-on: ubuntu-latest
needs: [build]
concurrency:
group: release__nightly
cancel-in-progress: true
steps:
- name: Download a Build Artifact
uses: actions/download-artifact@v4
with:
name: ${{ needs.build.outputs.artifact }}
- name: Nightly Release
uses: andelf/nightly-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body: |
This is a nightly release [created automatically with GitHub Actions workflow](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}).
files: |
${{ needs.build.outputs.artifact }}