From 907d68dcd5c92756e0ead1265b746642e259e5c4 Mon Sep 17 00:00:00 2001 From: crrow Date: Sun, 22 Mar 2026 23:06:39 +0900 Subject: [PATCH] chore(release): enable crates.io publishing via release-plz (#2) Enable cargo publish in release-plz config and add CARGO_REGISTRY_TOKEN to the release workflow. Add repository field to Cargo.toml metadata. Closes #2 --- .github/workflows/release-plz.yml | 1 + Cargo.toml | 1 + release-plz.toml | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml index 98d9b8a..bac1f76 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -26,3 +26,4 @@ jobs: command: release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/Cargo.toml b/Cargo.toml index 0caf7a8..729062f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,7 @@ version = "0.1.0" edition = "2024" description = "Rust SDK for WeChat Agent (iLink Bot) — ported from frostming/weixin-agent-sdk" license = "MIT" +repository = "https://github.com/rararulab/wechat-agent-rs" [dependencies] tokio = { version = "1", features = ["full"] } diff --git a/release-plz.toml b/release-plz.toml index 5e44242..f1a2ff6 100644 --- a/release-plz.toml +++ b/release-plz.toml @@ -26,5 +26,5 @@ publish_allow_dirty = false # disable running `cargo-semver-checks` semver_check = false -# disable cargo publish - not published to crates.io -publish = false +# enable cargo publish to crates.io +publish = true