-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (34 loc) · 1.08 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
name: build-app
on:
workflow_dispatch: {}
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
paths-filter:
name: 'Paths Filter'
uses: ./.github/workflows/paths-filter.yml
build-app:
name: 'App'
needs: [paths-filter]
if: github.event.pull_request.draft != true && needs.paths-filter.outputs.should-build != 'false'
uses: grigorye/ReusableWorkflows/.github/workflows/build-app-generic.yml@v24
with:
macos-app-scheme: 'URLHelperApp'
build-configs: '[\"app-store\", \"developer-id\"]'
secrets: inherit
finalize-build-app:
name: 'Finalize App Build'
if: always()
needs: [paths-filter, build-app]
runs-on: ubuntu-latest
steps:
- name: 'Check required build results'
if: needs.paths-filter.outputs.should-build != 'false'
run: |
[ "${{ needs.build-app.result }}" == "success" ]
- name: 'Report success for skipped build'
if: needs.paths-filter.outputs.should-build == 'false'
run: |
echo 'No build required.'