-
Notifications
You must be signed in to change notification settings - Fork 13
52 lines (47 loc) · 1.54 KB
/
ci-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
on:
push:
branches:
- master
- beta
- develop
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-*'
pull_request:
branches:
- master
- beta
- develop
types: [opened, reopened, synchronize]
workflow_dispatch: # Manually invoked by user.
name: ci-build
jobs:
getvars:
uses: ./.github/workflows/get-vars.yml
build:
needs: getvars
uses: ./.github/workflows/build-all.yml
with:
version: ${{ needs.getvars.outputs.version }}
release-channel: ${{ needs.getvars.outputs.release-channel }}
board-matrix: ${{ needs.getvars.outputs.board-matrix }}
checkpoint-build:
runs-on: ubuntu-latest
needs: [getvars, build]
steps:
- run: echo "Builds checkpoint reached"
publish:
if: ${{ needs.getvars.outputs.should-deploy == 'true' }}
needs: [getvars, checkpoint-build]
uses: ./.github/workflows/publish-all.yml
with:
version: ${{ needs.getvars.outputs.version }}
release-channel: ${{ needs.getvars.outputs.release-channel }}
is-prerelease: ${{ needs.getvars.outputs.release-channel != 'stable' }}
board-list: ${{ needs.getvars.outputs.board-list }}
board-matrix: ${{ needs.getvars.outputs.board-matrix }}
release-notes: ${{ needs.getvars.outputs.release-notes }}
release-stable-list: ${{ needs.getvars.outputs.release-stable-list }}
release-beta-list: ${{ needs.getvars.outputs.release-beta-list }}
release-dev-list: ${{ needs.getvars.outputs.release-dev-list }}
secrets: inherit