Skip to content

Commit ad2d082

Browse files
committed
Add the deploy.yml action.
1 parent c8a6078 commit ad2d082

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Deploy to Crates IO
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*' # Trigger the workflow when a tag starting with 'v' is pushed, like v1.0.0
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v5
15+
16+
- name: Setup Rust
17+
uses: actions-rust-lang/setup-rust-toolchain@v1
18+
with:
19+
toolchain: stable
20+
21+
- name: Deploy to Crates IO
22+
run: |
23+
cargo publish \
24+
--token ${{ secrets.CRATES_IO_TOKEN }}

0 commit comments

Comments
 (0)