Skip to content

Commit

Permalink
Added publish.yml for crates.io
Browse files Browse the repository at this point in the history
Change rust.yml to build.yml
  • Loading branch information
Radiicall committed Oct 18, 2023
1 parent 47adb4e commit a28453e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Build

on:
release:
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Publish on crates.io

on:
release:
types: [published]

steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit a28453e

Please sign in to comment.