Skip to content

Commit bab03fa

Browse files
Copilotlarp0
andcommitted
Add step to publish to crates.io on tag release
Co-authored-by: larp0 <[email protected]>
1 parent 5435b09 commit bab03fa

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,3 +198,28 @@ jobs:
198198
github_token: ${{ secrets.GITHUB_TOKEN }}
199199
publish_dir: ./target/doc
200200
force_orphan: true
201+
202+
publish-to-crates:
203+
name: Publish to crates.io
204+
needs: create-github-release
205+
runs-on: ubuntu-latest
206+
steps:
207+
- uses: actions/checkout@v4
208+
209+
- name: Install dependencies
210+
run: sudo apt-get update && sudo apt-get install -y libusb-1.0-0-dev libudev-dev pkg-config libssl-dev
211+
212+
- name: Install Rust
213+
uses: dtolnay/rust-toolchain@stable
214+
with:
215+
toolchain: stable
216+
217+
- name: Verify build
218+
run: cargo build --release
219+
working-directory: .
220+
221+
- name: Publish to crates.io
222+
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
223+
working-directory: .
224+
env:
225+
CARGO_TERM_COLOR: always

Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ name = "osvm"
33
version = "0.3.0"
44
edition = "2021"
55
license = "MIT"
6-
publish = false
6+
description = "OpenSVM CLI tool for managing SVM nodes and deployments"
7+
homepage = "https://github.com/openSVM/osvm-cli"
8+
repository = "https://github.com/openSVM/osvm-cli"
9+
readme = "README.md"
10+
keywords = ["solana", "svm", "blockchain", "validator", "deployment"]
11+
categories = ["command-line-utilities", "development-tools"]
12+
713

814
[dependencies]
915
bincode = "2.0.1"

0 commit comments

Comments
 (0)