validbr 0.2.1

Provides data structure and validation for Brazilian Registries, such as CPF, CNPJ and CNH (currently only CPF and CNPJ is supported)
name: Publish Crate

on:
  workflow_run:
    workflows: [ "Build" ]
    branches: [ main ]
    types:
      - completed
  release:
    types: [published]

env:
  CARGO_TERM_COLOR: always

jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Change Rust to nightly
        run: rustup default nightly
      - name: Rustup update
        run: rustup update
      - name: Publish
        env:
          CARGO_REGISTRY_TOKEN: ${{ secrets.CRATESIO_SECRET }}
        run: cargo +nightly publish --verbose