-
Notifications
You must be signed in to change notification settings - Fork 17
39 lines (36 loc) · 981 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
33
34
35
36
37
38
39
on:
push:
tags:
- 'v*'
workflow_dispatch:
name: Publish
env:
CARGO_TERM_COLOR: always
CARGO_NET_GIT_FETCH_WITH_CLI: true
jobs:
publish-round-based:
name: Publish round-based
environment: crates.io
runs-on: ubuntu-latest
if: >-
github.ref_type == 'tag'
&& startsWith(github.ref_name, 'v')
&& endsWith(github.ref_name, '-round-based')
steps:
- uses: actions/checkout@v3
- run: cargo publish -p round-based --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
publish-derive:
name: Publish round-based-derive
environment: crates.io
runs-on: ubuntu-latest
if: >-
github.ref_type == 'tag'
&& startsWith(github.ref_name, 'v')
&& endsWith(github.ref_name, '-derive')
steps:
- uses: actions/checkout@v3
- run: cargo publish -p round-based-derive --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}