Skip to content

Commit

Permalink
rust(build): crates.io publish workflow + project metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
solidiquis committed Nov 12, 2024
1 parent 8823839 commit 163d392
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/rust_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Crates Publish

on:
workflow_dispatch:

jobs:
rust-ci:
if: github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/tags')
uses: ./.github/workflows/rust_ci.yaml

publish-to-crate-io-dry-run:
runs-on: ubuntu-latest
name: Publish to crates.io
needs: rust-ci
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
path: './rust'
1 change: 1 addition & 0 deletions .github/workflows/rust_release_dry_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Crates Publish (Dry Run)

on:
workflow_dispatch:
workflow_call:

jobs:
rust-ci:
Expand Down
11 changes: 11 additions & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
name = "sift_rs"
version = "0.1.0"
edition = "2021"
authors = ["Sift Software Engineers <[email protected]>"]
description = """
Rust client library for the Sift API
"""
categories = ["aerospace", "science::robotics"]
homepage = "https://github.com/sift-stack/sift/tree/main/rust"
repository = "https://github.com/sift-stack/sift/tree/main/rust"
keywords = ["sift", "siftstack", "sift-stack", "sift_rs"]
exclude = ["examples/*"]
readme = "README.md"
license = "MIT"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
1 change: 1 addition & 0 deletions rust/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Sift Rust

0 comments on commit 163d392

Please sign in to comment.