-
Notifications
You must be signed in to change notification settings - Fork 51
65 lines (56 loc) · 1.71 KB
/
Copy pathrelease.yaml
File metadata and controls
65 lines (56 loc) · 1.71 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
name: Release
on:
push:
tags: ['**'] # any tag (vX.Y.Z, nightly‑foo, …)
permissions:
contents: read
packages: write
jobs:
flavour:
uses: ./.github/workflows/flavour.yaml # → target + is_* booleans
node_tests:
if: needs.flavour.outputs.is_premium == 'true' ||
needs.flavour.outputs.is_oss == 'true'
needs: [flavour]
uses: ./.github/workflows/node_test.yaml
secrets: inherit
go_tests:
if: needs.flavour.outputs.is_premium == 'true' ||
needs.flavour.outputs.is_oss == 'true'
needs: [flavour]
uses: ./.github/workflows/go_test.yaml
secrets: inherit
build_e2e:
if: needs.flavour.outputs.is_premium == 'true' ||
needs.flavour.outputs.is_oss == 'true'
needs: [flavour, node_tests, go_tests]
uses: ./.github/workflows/build.yaml
permissions:
contents: read
packages: write
with:
target: ${{ needs.flavour.outputs.target }}
build_app: false
build_e2e: true
secrets: inherit
e2e_tests:
if: needs.flavour.outputs.is_premium == 'true' ||
needs.flavour.outputs.is_oss == 'true'
needs: [flavour, node_tests, go_tests, build_e2e]
uses: ./.github/workflows/e2e.yaml
permissions:
contents: read
packages: write
with:
target: ${{ needs.flavour.outputs.target }}
secrets: inherit
build_app_release:
if: needs.flavour.outputs.is_premium == 'true' ||
needs.flavour.outputs.is_oss == 'true'
needs: [flavour, node_tests, go_tests, e2e_tests]
uses: ./.github/workflows/build.yaml
with:
target: ${{ needs.flavour.outputs.target }}
build_app: true
build_e2e: false
secrets: inherit