del-geo 0.1.21

2D/3D geometry utility codes
Documentation
name: CI

on:
  push:
    branches:
      - main
    tags:
      - 'v*'
  pull_request:

jobs:
  linux:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3

    - name: Install Rust toolchain
      uses: actions-rs/toolchain@v1
      with:
        toolchain: stable
        profile: minimal
        default: true

    - name: Cargo commands
      run: |
        cargo build --release
        cargo test --release
        cargo doc --release

    - run: |
        echo ${{ github.ref }}

    - if: startsWith( github.ref, 'refs/tags/v' )
      env:
        CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
      run: |
        cargo publish