-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rust(build): crates.io publish workflow + project metadata
- Loading branch information
1 parent
8823839
commit 163d392
Showing
4 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ name: Crates Publish (Dry Run) | |
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
rust-ci: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Sift Rust |