Skip to content

Commit 9be150a

Browse files
committed
Add automatic crates.io publishing to release workflow
1 parent fe695f3 commit 9be150a

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,16 @@ jobs:
168168
artifacts/checksums.txt
169169
env:
170170
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
171+
172+
publish-crates:
173+
name: Publish to crates.io
174+
needs: release
175+
runs-on: ubuntu-latest
176+
steps:
177+
- uses: actions/checkout@v4
178+
179+
- name: Install Rust
180+
uses: dtolnay/rust-toolchain@stable
181+
182+
- name: Publish to crates.io
183+
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)