summaryrefslogtreecommitdiffstats
path: root/.github/workflows/crates.yml
blob: d4cd86e089db0861efd432b2df77a874f193e074 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 }}