tokmat 0.3.2

Standalone high-performance Canadian address parsing engine core
Documentation
name: release

on:
  push:
    tags:
      - "v*"

permissions:
  contents: read

jobs:
  crates-publish:
    name: Publish to crates.io
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: dtolnay/rust-toolchain@stable
        with:
          components: rustfmt, clippy
      - name: Verify crate before publish
        run: |
          cargo fmt --all --check
          cargo clippy --all-targets --all-features -- -D warnings
          cargo test
          cargo publish --dry-run
      - name: Publish crate
        env:
          CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
        run: cargo publish --locked