Skip to content

Commit

Permalink
publish rust package from the ci
Browse files Browse the repository at this point in the history
  • Loading branch information
glehmann committed Apr 29, 2024
1 parent 0ff8072 commit 98d6110
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ permissions:
contents: write

jobs:
package:
name: Publish Rust package
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Publish to crates.io
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{secrets.CARGO_REGISTRY_TOKEN}}

# The create-release job runs purely to initialize the GitHub release itself,
# and names the release after the `x.y.z` tag that was pushed. It's separate
# from building the release so that we only create the release once.
Expand Down

0 comments on commit 98d6110

Please sign in to comment.