diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 13eaefeb..75c90f60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -554,3 +554,29 @@ jobs: echo "Publishing $name@$version" (cd "$dir" && npm publish --access public) done + + publish-crate: + needs: + - plan + - host + - announce + if: ${{ needs.announce.result == 'success' && !fromJson(needs.host.outputs.val).announcement_is_prerelease }} + runs-on: ubuntu-22.04 + environment: release + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + BT_VERSION_STRING: ${{ needs.plan.outputs.release-version }} + steps: + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + with: + ref: ${{ needs.plan.outputs.tag }} + persist-credentials: false + + - name: Install Rust toolchain + run: rustup show active-toolchain || rustup toolchain install stable + + - name: Verify package + run: cargo publish --dry-run --locked + + - name: Publish to crates.io + run: cargo publish --locked diff --git a/Cargo.toml b/Cargo.toml index 265c8352..3db9abfc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,24 @@ authors = ["Braintrust engineering "] description = "The Braintrust command line interface" license = "Apache-2.0" repository = "https://github.com/braintrustdata/bt" +homepage = "https://www.braintrust.dev" +documentation = "https://www.braintrust.dev/docs" +readme = "README.md" +keywords = ["braintrust", "cli", "llm", "evals", "ai"] +categories = ["command-line-utilities", "development-tools"] +include = [ + "src/**/*", + "scripts/**/*", + "build.rs", + "Cargo.toml", + "Cargo.lock", + "README.md", + "LICENSE", +] + +[[bin]] +name = "bt" +path = "src/main.rs" [package.metadata.wix] upgrade-guid = "5B558F98-EEBD-4F5E-A0C8-E7A039445139" @@ -18,7 +36,7 @@ eula = false actix-web = "4.11.0" anyhow = "1.0.89" backoff = { version = "0.4.0", features = ["tokio"] } -braintrust-sdk-rust = { git = "https://github.com/braintrustdata/braintrust-sdk-rust", rev = "43ba73edbf5220b57090e049feb094b60a92fcd4" } +braintrust-sdk-rust = "=0.1.0-alpha.3" bt-daemon = { git = "https://github.com/braintrustdata/braintrust-coding-agent-plugins", rev = "1ca65d4381acbed0610797c4f8825556b9b6cf10" } async-trait = "0.1" clap = { version = "4.5.20", features = ["derive", "env"] } @@ -43,7 +61,7 @@ dotenvy = "0.15" open = "5" regex = "1" urlencoding = "2" -lingua = { git = "https://github.com/braintrustdata/lingua", rev = "3c79f2c427d12d3e2fe104910ef3c0768ad83770" } +lingua = { package = "braintrust-lingua", version = "0.1" } comfy-table = "7.2.2" base64 = "0.22" oauth2 = { version = "4.4", default-features = false }