cborpath 0.5.0

CborPath engine written in Rust
Documentation
name: Publish on crates.io

on:
  release:
    types: [published]

jobs:
  build:
    runs-on: ubuntu-latest
    env:
      CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
    steps:
    - name: Checkout sources
      uses: actions/checkout@v3
      
    - name: Install stable toolchain
      uses: actions-rs/toolchain@v1
      with:
        profile: minimal
        toolchain: stable
        override: true
        
    - name: Update version
      run: |
        VERSION=${{github.ref_name}}
        sed -i -e 's/^version = .*/version = "'$VERSION'"/' Cargo.toml
    
    - name: Publish crate
      run: cargo publish --allow-dirty --token ${{secrets.CRATES_IO_API_TOKEN}}