ipinfo 3.5.0

ipinfo: A Rust library for IPInfo
Documentation
name: Release package to crates.io

on:
  push:
    tags:
      - '*'

permissions:
  contents: read

jobs:
  publish:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout 
      uses: actions/checkout@v4

    - name: Build
      run: cargo build --verbose

    - name: Run tests
      run: cargo test --verbose
      env: 
        IPINFO_TOKEN: ${{ secrets.IPINFO_TOKEN }}

    - name: Publish
      run: cargo publish -v --token ${{ secrets.CARGO_REGISTRY_TOKEN_NEW }}