Skip to content

Commit fffa716

Browse files
committed
add publish workflow
1 parent dfe80b9 commit fffa716

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/publish.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish to crates.io
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
jobs:
12+
publish:
13+
name: Rust project - latest
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
toolchain:
18+
- stable
19+
steps:
20+
- uses: actions/checkout@v4
21+
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
22+
- run: cargo publish --verbose

0 commit comments

Comments
 (0)