-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (30 loc) · 1.05 KB
/
release.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
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: Release packages
jobs:
release-crate:
name: release to crates.io
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: cargo publish yrs-kvstore
run: cd yrs-kvstore && cargo publish --all-features --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: cargo publish yrs-lmdb
run: sleep 20 && cd yrs-lmdb && cargo publish --all-features --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: cargo publish yrs-rocksdb
run: sleep 20 && cd yrs-rocksdb && cargo publish --all-features --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}