Create publish-to-crates.yml

This commit is contained in:
Tilo authored and GitHub committed 2023-10-26 21:50:08 +02:00
1 parent 139ed44029
commit daa39d1203
1 file changed
+18
+18
View File
@@ -0,0 +1,18 @@
name: Publish package to crates
run-name: ${{ github.actor }} is publishing to crates.io
on:
push:
branches:
- master
jobs:
Publish-To-Crates-Io:
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 }}