-
Notifications
You must be signed in to change notification settings - Fork 18
33 lines (30 loc) · 956 Bytes
/
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
name: publish
on:
workflow_dispatch:
release:
types: [published]
jobs:
publish-avalanche-types-crate:
name: publish-avalanche-types
runs-on: ubuntu-latest
if: "startsWith(github.event.release.tag_name, 'avalanche-types-v')"
steps:
- uses: actions/checkout@v1
- uses: dtolnay/rust-toolchain@stable
- name: publish avalanche-types crate
shell: bash
run: |
cargo login ${{ secrets.CARGO_TOKEN }}
cargo publish -p avalanche-types
publish-avalanche-consensus-crate:
name: publish-avalanche-consensus
runs-on: ubuntu-latest
if: "startsWith(github.event.release.tag_name, 'avalanche-consensus-v')"
steps:
- uses: actions/checkout@v1
- uses: dtolnay/rust-toolchain@stable
- name: publish avalanche-consensus crate
shell: bash
run: |
cargo login ${{ secrets.CARGO_TOKEN }}
cargo publish -p avalanche-consensus