Skip to content

Commit

Permalink
ci(actions): Add publish job inside build.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Dec 30, 2024
1 parent f312868 commit 66b3931
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,15 @@ jobs:
run: cargo bench --locked --no-default-features --features "${CRATE_FEATURES}"
- name: Generate Documentation
run: cargo doc --no-deps --locked --no-default-features --features "${CRATE_FEATURES}"

publish:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Publish Package
run: cargo publish --locked
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}

0 comments on commit 66b3931

Please sign in to comment.