Add crates.io GitHub action

This commit is contained in:
Ryan Geary 2020-06-16 20:03:07 -04:00
parent 04af6f2304
commit 0e422090d3

22
.github/workflows/crates.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: Crates.io Release
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check style
run: cargo fmt -- --check
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Publish
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}