[ci] Create the crates publish action

This commit is contained in:
Anas Elgarhy 2023-05-01 14:34:40 +02:00
parent 486cbcd80f
commit 85d94fe9ab
No known key found for this signature in database
GPG key ID: 0501802A1D496528

18
.github/workflows/crates-releae.yml vendored Normal file
View file

@ -0,0 +1,18 @@
name: Publish to crates.io
on:
release:
types: [ created, published ]
jobs:
publish-crates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}