-
Notifications
You must be signed in to change notification settings - Fork 23
42 lines (36 loc) · 1.41 KB
/
publish.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
name: Publish Components
on:
push:
branches:
- main
jobs:
harmonizer_publish:
if: "contains(github.event.head_commit.message, 'Automated PR for harmonizer release')"
name: Publish harmonizer
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Run Cargo xtask tag
run: |
HARMONIZER_RELEASE_VERSION=composition@v`cargo metadata --format-version 1 |jq -r '.packages[] | select(.name=="harmonizer") | .version'`
git config user.name "ApolloBot2"
git config user.email "[email protected]"
cargo xtask tag --package $HARMONIZER_RELEASE_VERSION --real-publish
router-bridge_publish:
if: "contains(github.event.head_commit.message, 'Automated PR for router-bridge release')"
name: Publish router-bridge
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Run Cargo xtask tag
run: |
ROUTERBRIDGE_RELEASE_VERSION=router-bridge@v`cargo metadata --format-version 1 |jq -r '.packages[] | select(.name=="router-bridge") | .version'`
git config user.name "ApolloBot2"
git config user.email "[email protected]"
cargo xtask tag --package $ROUTERBRIDGE_RELEASE_VERSION --real-publish