mirror of
https://github.com/theryangeary/choose
synced 2025-02-16 17:28:24 +00:00
Add crates.io GitHub action
This commit is contained in:
parent
04af6f2304
commit
0e422090d3
1 changed files with 22 additions and 0 deletions
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…
Add table
Reference in a new issue