choose/.github/workflows/crates.yml
2020-06-16 20:03:07 -04:00

22 lines
391 B
YAML

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 }}