ci: add workflow to publish to crates.io

This commit is contained in:
Helmut K. C. Tessarek 2026-02-01 14:50:12 -05:00
parent 9cdc6aa374
commit 2d885a3152
No known key found for this signature in database
GPG Key ID: BE0985349D44DD00
1 changed files with 18 additions and 0 deletions

18
.github/workflows/cd.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Continuous Deployment
on:
push:
tags:
- "v*.*.*"
jobs:
publish-crates-io:
name: Publish on crates.io
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v5
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Publish
run: cargo publish --token ${{ secrets.CARGO_TOKEN }}