add cargo publish github action (#26)

This commit is contained in:
Ry Dahl 2019-12-04 01:45:50 -05:00 committed by GitHub
parent 8a191c7ed9
commit cec2467245
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,6 +76,12 @@ jobs:
rustup component add clippy
cargo clippy --all-targets --release --locked -- -D clippy::all
- name: Publish
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'denoland/rusty_v8'
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish -vv
- name: Stop sccache
run: sccache --stop-server