Skip to content

Commit 0faf280

Browse files
committed
fix: Make edgeflow-client a publishable crate
1 parent 74e5e9d commit 0faf280

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/publish-cargo.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,25 @@ name: publish-cargo
22

33
on:
44
push:
5-
tags: ['v*']
5+
tags: ["v*"]
66
workflow_dispatch:
77

88
permissions:
99
contents: read
1010

1111
jobs:
1212
publish:
13-
name: cargo publish edgeflow-cli
13+
name: cargo publish
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
1717
- uses: dtolnay/rust-toolchain@stable
1818
- uses: Swatinem/rust-cache@v2
19-
- name: cargo publish
19+
- name: cargo publish edgeflow-client
20+
env:
21+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
22+
run: cargo publish -p edgeflow-client
23+
- name: cargo publish edgeflow-cli
2024
env:
2125
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2226
run: cargo publish -p edgeflow-cli

apps/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ name = "edgeflow"
2121
path = "src/main.rs"
2222

2323
[dependencies]
24-
edgeflow-client = { path = "../../crates/client" }
24+
edgeflow-client = { path = "../../crates/client", version = "=0.3.0" }
2525
clap = { version = "4", features = ["derive", "env"] }
2626
serde_json = { workspace = true }
2727
anyhow = { workspace = true }

crates/client/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ repository.workspace = true
88
homepage.workspace = true
99
rust-version.workspace = true
1010
description = "Sync HTTP client for the edgeflow REST API. Shared by edgeflow-cli and the Python SDK extension so both clients call into one source of truth."
11-
publish = false
11+
keywords = ["ml", "mlops", "inference", "edge", "client"]
12+
categories = ["api-bindings"]
1213

1314
[dependencies]
1415
reqwest = { version = "0.13", features = ["blocking", "json"] }

0 commit comments

Comments
 (0)