Publish to crates.io on release creation

This commit is contained in:
Xithrius 2021-11-16 15:40:16 -08:00
parent 757354a224
commit 4206ec2d29
No known key found for this signature in database
GPG Key ID: BD0FC909FA912B62

19
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: Publish to Crates.io
on:
release:
types:
- published
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: cargo login ${CRATES_IO_TOKEN}
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
- run: cargo publish --allow-dirty