Skip to content

Commit

Permalink
build: add publish step to action
Browse files Browse the repository at this point in the history
  • Loading branch information
calebissharp committed May 17, 2024
1 parent 028fd39 commit a24f636
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,23 @@ jobs:
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
release-type: rust
publish:
name: Publish to crates.io

runs-on: ubuntu-latest
needs: release-please
if: needs.release-please.outputs.created

environment: crates.io

steps:
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal
- uses: swatinem/rust-cache@v2

- name: Publish
run: >
cargo publish
--verbose
--locked
--token ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit a24f636

Please sign in to comment.