-
Notifications
You must be signed in to change notification settings - Fork 5
100 lines (90 loc) · 3.38 KB
/
release.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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Release
permissions:
contents: write
pull-requests: write
actions: write
on:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
release-please:
name: Create Release
outputs:
release-pr: ${{ steps.release.outputs.pr }}
tag-name: ${{ steps.release.outputs.tag_name }}
runs-on: ubuntu-latest
steps:
- name: Run release-please
id: release
uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.RELEASE_TOKEN }}
publish-rust-crates:
name: Publish necessary rust crates
needs: [release-please]
if: ${{ needs.release-please.outputs.tag-name }}
runs-on: ubuntu-latest
steps:
- name: Dispatch to publish workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: release-rust-crates.yml
ref: master
inputs: '{ "ref": "${{ needs.release-please.outputs.tag-name }}", "release-type": "release" }'
token: ${{ secrets.RELEASE_TOKEN }}
publish-node-bindings:
name: Publish node bindings
needs: [release-please]
if: ${{ needs.release-please.outputs.tag-name }}
runs-on: ubuntu-latest
steps:
- name: Dispatch to publish workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: release-node-bindings.yml
ref: master
inputs: '{ "ref": "${{ needs.release-please.outputs.tag-name }}", "release-type": "release" }'
token: ${{ secrets.RELEASE_TOKEN }}
publish-java-bindings:
name: Publish java bindings
needs: [release-please]
if: ${{ needs.release-please.outputs.tag-name }}
runs-on: ubuntu-latest
steps:
- name: Dispatch to publish workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: release-java-bindings.yml
ref: master
inputs: '{ "ref": "${{ needs.release-please.outputs.tag-name }}", "release-type": "release" }'
token: ${{ secrets.RELEASE_TOKEN }}
publish-csharp-bindings:
name: Publish c# bindings
needs: [release-please]
if: ${{ needs.release-please.outputs.tag-name }}
runs-on: ubuntu-latest
steps:
- name: Dispatch to publish workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: release-csharp-bindings.yml
ref: master
inputs: '{ "ref": "${{ needs.release-please.outputs.tag-name }}", "release-type": "release" }'
token: ${{ secrets.RELEASE_TOKEN }}
publish-nim-bindings:
name: Publish nim bindings
needs: [release-please]
if: ${{ needs.release-please.outputs.tag-name }}
runs-on: ubuntu-latest
steps:
- name: Dispatch to publish workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: release-nim-bindings.yml
ref: master
inputs: '{ "ref": "${{ needs.release-please.outputs.tag-name }}" }'
token: ${{ secrets.RELEASE_TOKEN }}