Skip to content

Release packages

Release packages #1

Workflow file for this run

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 }}