forked from tezedge/tezedge
-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (41 loc) · 1.29 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
name: publish
on:
push:
tags:
- '*'
jobs:
publish-crypto:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: dry-run (crypto)
run: cargo publish --dry-run -p tezos_crypto_rs
- name: publish (crypto)
run: cargo publish -p tezos_crypto_rs --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
publish-derive:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: dry-run (derive)
run: cargo publish --dry-run -p tezos_data_encoding_derive
- name: publish (derive)
run: cargo publish -p tezos_data_encoding_derive --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
publish-encoding:
runs-on: ubuntu-latest
needs: [publish-crypto, publish-derive]
if: always()
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: dry-run (encoding)
run: cargo publish --dry-run -p tezos_data_encoding
- name: publish (encoding)
run: cargo publish -p tezos_data_encoding --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}