-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (61 loc) · 1.63 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
on:
push:
tags:
- 'v*'
- 'core-v*'
- 'curves-v*'
- 'zkp-v*'
workflow_dispatch:
name: Publish
env:
CARGO_TERM_COLOR: always
CARGO_NET_GIT_FETCH_WITH_CLI: true
jobs:
publish-round-based:
name: Publish generic-ec
environment: crates.io
runs-on: ubuntu-latest
if: >-
github.ref_type == 'tag'
&& startsWith(github.ref_name, 'v')
steps:
- uses: actions/checkout@v3
- run: cargo publish -p generic-ec --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
publish-core:
name: Publish generic-ec-core
environment: crates.io
runs-on: ubuntu-latest
if: >-
github.ref_type == 'tag'
&& startsWith(github.ref_name, 'core-v')
steps:
- uses: actions/checkout@v3
- run: cargo publish -p generic-ec-core --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
publish-curves:
name: Publish generic-ec-curves
environment: crates.io
runs-on: ubuntu-latest
if: >-
github.ref_type == 'tag'
&& startsWith(github.ref_name, 'curves-v')
steps:
- uses: actions/checkout@v3
- run: cargo publish -p generic-ec-curves --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
publish-zkp:
name: Publish generic-ec-zkp
environment: crates.io
runs-on: ubuntu-latest
if: >-
github.ref_type == 'tag'
&& startsWith(github.ref_name, 'zkp-v')
steps:
- uses: actions/checkout@v3
- run: cargo publish -p generic-ec-zkp --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}