forked from tremor-rs/tremor-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
99 lines (92 loc) · 2.81 KB
/
publish-crates.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: "Publish crates"
on: workflow_dispatch
jobs:
publish-tremor-common:
name: Publish tremor common
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Publish tremor-common to crates.io
uses: katyo/publish-crates@v1
with:
path: './tremor-common'
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
publish-tremor-value:
name: Publish tremor value
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Publish tremor-value to crates.io
uses: katyo/publish-crates@v1
with:
path: './tremor-value'
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
publish-tremor-influx:
name: Publish tremor influx
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Publish tremor-influx to crates.io
uses: katyo/publish-crates@v1
with:
path: './tremor-influx'
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
publish-tremor-script:
needs: [publish-tremor-common, publish-tremor-value, publish-tremor-influx]
name: Publish tremor script
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Publish tremor-script to crates.io
uses: Wandalen/wretry.action@v1.0.11
with:
command: cd tremor-script && cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
attempt_limit: 6
attempt_delay: 10000
invoke-tremor-language-server:
needs: [publish-tremor-script]
name: Trigger Tremor LS release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Find updated version
run: |
VERSION=$(cargo pkgid | cut -d# -f2 | cut -d: -f2)
echo "VER=$VERSION" >> $GITHUB_ENV
- name: Invoke workflow in tremor-language-server
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Draft new release
repo: tremor-rs/tremor-language-server
inputs: '{ "version": "${{ env.VER }}"}'
token: ${{ secrets.PAT_TOKEN }}