Release on crates.io #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release on crates.io | |
on: | |
push: | |
# Pattern matched against refs/tags | |
tags: | |
- '*' # Push events to every tag not containing / | |
# Allow manual triggering | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build-and-test: | |
uses: ./.github/workflows/setup_and_test.yml | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
needs: build-and-test | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Publish release | |
uses: katyo/publish-crates@v2 | |
with: | |
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
dry-run: true | |
check-repo: false |