Skip to content

Commit 52ddc85

Browse files
ind-igoclaude
andcommitted
Add cargo publish to release workflow
Publishes to crates.io after GitHub release is created. Requires CARGO_REGISTRY_TOKEN secret. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 960504f commit 52ddc85

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ jobs:
6969
cx-*.tar.gz
7070
cx-*.zip
7171
72+
publish-crate:
73+
needs: release
74+
runs-on: ubuntu-latest
75+
steps:
76+
- uses: actions/checkout@v4
77+
- uses: dtolnay/rust-toolchain@stable
78+
- run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
79+
7280
update-homebrew:
7381
needs: release
7482
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)