mirror of
https://github.com/theryangeary/choose
synced 2024-09-20 16:21:39 +00:00
Add crates.io GitHub action
This commit is contained in:
parent
04af6f2304
commit
0e422090d3
22
.github/workflows/crates.yml
vendored
Normal file
22
.github/workflows/crates.yml
vendored
Normal 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 }}
|
Loading…
Reference in a new issue