set workflow to publish when github ver published

This commit is contained in:
Amber
2020-08-26 14:52:54 -04:00
committed by GitHub
parent ce2f19019b
commit b3160a29f1

View File

@@ -1,10 +1,6 @@
name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types: [ published ]
@@ -22,3 +18,5 @@ jobs:
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: publish
run: cargo publish --verbose