Skip to content

Commit b7e3a98

Browse files
authored
ci: publish workflow (#22)
1 parent 819d113 commit b7e3a98

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish to Crates.io
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v4
14+
15+
- name: Install Rust Toolchain
16+
uses: dtolnay/rust-toolchain@stable
17+
18+
- name: Install cargo-workspaces
19+
run: cargo install cargo-workspaces
20+
21+
- name: Publish to Crates.io
22+
env:
23+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
24+
run: cargo workspaces publish --no-git-commit --publish-as-is --token $CARGO_REGISTRY_TOKEN

0 commit comments

Comments
 (0)