Skip to content

Commit

Permalink
Merge pull request #12 from ZenGo-X/publish-v0.2
Browse files Browse the repository at this point in the history
Publish v0.2
  • Loading branch information
survived authored Nov 23, 2023
2 parents 65fdfca + 53cee50 commit c0af596
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 4 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
on:
push:
tags:
- 'v*'
- 'derive-v*'
workflow_dispatch:

name: Publish

env:
CARGO_TERM_COLOR: always
CARGO_NET_GIT_FETCH_WITH_CLI: true

jobs:
publish-round-based:
name: Publish round-based
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 round-based --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
publish-derive:
name: Publish round-based-derive
environment: crates.io
runs-on: ubuntu-latest
if: >-
github.ref_type == 'tag'
&& startsWith(github.ref_name, 'derive-v')
steps:
- uses: actions/checkout@v3
- run: cargo publish -p round-based-derive --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
13 changes: 12 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE)
![License: MIT](https://img.shields.io/crates/l/round-based.svg)
[![Docs](https://docs.rs/round-based/badge.svg)](https://docs.rs/round-based)
[![Crates io](https://img.shields.io/crates/v/round-based.svg)](https://crates.io/crates/round-based)

Expand Down
3 changes: 2 additions & 1 deletion round-based/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "Driver for MPC protocols"
repository = "https://github.com/ZenGo-X/round-based-protocol"
categories = ["asynchronous", "cryptography", "network-programming"]
keywords = ["round-based", "mpc", "protocol"]
readme = "../README.md"

[package.metadata.docs.rs]
all-features = true
Expand All @@ -20,7 +21,7 @@ phantom-type = "0.3"
tracing = "0.1"
thiserror = "1"

round-based-derive = { path = "../round-based-derive", optional = true }
round-based-derive = { version = "0.2", optional = true }

tokio = { version = "1", features = ["rt"], optional = true }
tokio-stream = { version = "0.1", features = ["sync"], optional = true }
Expand Down
2 changes: 1 addition & 1 deletion round-based/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE)
//! ![License: MIT](https://img.shields.io/crates/l/round-based.svg)
//! [![Docs](https://docs.rs/round-based/badge.svg)](https://docs.rs/round-based)
//! [![Crates io](https://img.shields.io/crates/v/round-based.svg)](https://crates.io/crates/round-based)
//!
Expand Down

0 comments on commit c0af596

Please sign in to comment.