-
-
Notifications
You must be signed in to change notification settings - Fork 3
83 lines (71 loc) · 1.81 KB
/
cicd.yaml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
name: "CI/CD"
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
issues: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
buildRust:
uses: ./.github/workflows/build_rust.yaml
buildPython:
uses: ./.github/workflows/build_python.yaml
needs:
- buildRust
buildTypeScript:
uses: ./.github/workflows/build_javascript.yaml
needs:
- buildRust
buildCSharp:
uses: ./.github/workflows/build_csharp.yaml
needs:
- buildRust
createRelease:
uses: ./.github/workflows/create_release.yaml
needs:
- buildRust
- buildPython
- buildTypeScript
- buildCSharp
secrets:
cargo_token: ${{ secrets.CARGO_TOKEN }}
releaseDocs:
needs:
- createRelease
uses: ./.github/workflows/release_docs.yaml
publishPython:
uses: ./.github/workflows/publish_python.yaml
needs:
- createRelease
secrets:
pypi_token: ${{ secrets.PYPI_TOKEN }}
with:
release_version: ${{ needs.createRelease.outputs.version }}
publishJavascript:
uses: ./.github/workflows/publish_javascript.yaml
needs:
- createRelease
secrets:
npm_token: ${{ secrets.NPM_TOKEN }}
with:
release_version: ${{ needs.createRelease.outputs.version }}
publishCSharp:
uses: ./.github/workflows/publish_csharp.yaml
needs:
- createRelease
with:
release_version: ${{ needs.createRelease.outputs.version }}
secrets:
nuget_token: ${{ secrets.NUGET_TOKEN }}