This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
82 lines (70 loc) · 1.95 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
name: "CI/CD"
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: write
issues: write
pages: write
id-token: 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:
if: github.event_name != 'pull_request' && ${{ needs.createRelease.outputs.version != '' }}
uses: ./.github/workflows/publish_python.yaml
needs:
- createRelease
secrets:
pypi_token: ${{ secrets.PYPI_TOKEN }}
publishJavascript:
if: github.event_name != 'pull_request' && ${{ needs.createRelease.outputs.version != '' }}
uses: ./.github/workflows/publish_javascript.yaml
needs:
- createRelease
secrets:
npm_token: ${{ secrets.NPM_TOKEN }}
# publishCSharp:
# if: (github.event_name != 'pull_request') && ${{ needs.createRelease.outputs.version != '' }}
# uses: ./.github/workflows/publish_csharp.yaml
# needs:
# - createRelease
# with:
# version: ${{ needs.createRelease.outputs.version }}
# secrets:
# nuget_token: ${{ secrets.NUGET_TOKEN }}