-
Notifications
You must be signed in to change notification settings - Fork 11
53 lines (48 loc) · 1.25 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
on:
push:
tags:
- 'v*'
- 'key-share-v*'
- 'cggmp21-keygen-v*'
workflow_dispatch:
name: Publish
env:
CARGO_TERM_COLOR: always
CARGO_NET_GIT_FETCH_WITH_CLI: true
jobs:
publish-cggmp21:
name: Publish cggmp21
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 cggmp21
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }}
publish-key-share:
name: Publish key-share
environment: crates.io
runs-on: ubuntu-latest
if: >-
github.ref_type == 'tag'
&& startsWith(github.ref_name, 'key-share-v')
steps:
- uses: actions/checkout@v3
- run: cargo publish -p key-share --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
publish-cggmp21-keygen:
name: Publish cggmp21-keygen
environment: crates.io
runs-on: ubuntu-latest
if: >-
github.ref_type == 'tag'
&& startsWith(github.ref_name, 'cggmp21-keygen-v')
steps:
- uses: actions/checkout@v3
- run: cargo publish -p cggmp21-keygen --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}