Skip to content

Commit 5b3b361

Browse files
committed
add crates.io publish by tag
1 parent 0dbf4d4 commit 5b3b361

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,20 @@ jobs:
214214
--cache-control "public, max-age=3600" \
215215
--content-type "text/plain"
216216
217+
publish-crate:
218+
name: Publish to crates.io
219+
needs: release
220+
runs-on: ubuntu-latest
221+
steps:
222+
- uses: actions/checkout@v4
223+
224+
- uses: dtolnay/rust-toolchain@stable
225+
226+
- name: Publish
227+
run: cargo publish
228+
env:
229+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
230+
217231
homebrew:
218232
name: Update Homebrew Formula
219233
needs: [release, upload-r2]

0 commit comments

Comments
 (0)