Skip to content

Commit 74d8ca5

Browse files
committed
created publish.yaml
1 parent aaace38 commit 74d8ca5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@ name: Publish Crate
33
on:
44
push:
55
tags:
6-
- "v*.*.*" # only run when you push a version tag like v0.3.0
6+
- "v*.*.*" # triggers only when you push a version tag like v0.3.0
77

88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
1313
- uses: dtolnay/rust-toolchain@stable
14+
- name: Build and test
15+
run: |
16+
cargo build --verbose
17+
cargo test --verbose
1418
- name: Publish to crates.io
1519
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)