nisaba 0.2.4

Data quality, reconciliation, and validation across different data stores
Documentation
name: Release-plz

on:
  push:
    branches:
      - main

jobs:
  release-plz-release:
    name: Release
    runs-on: ubuntu-latest
    permissions:
      contents: write
      id-token: write
    steps:
      - name: Checkout repository
        uses: actions/checkout@v6
        with:
          fetch-depth: 0

      # Temporal fix to missing protoc requirement for 'lance-encoding v1.0.1'
      - &protobuf-install
        name: Install protobuf compiler
        run: sudo apt-get update && sudo apt-get install -y protobuf-compiler

      - name: Install Rust toolchain
        uses: dtolnay/rust-toolchain@stable

      - &dprint-install
        name: Install dprint
        run: |
          curl -fsSL https://dprint.dev/install.sh | sh
          echo "DPRINT_INSTALL=/home/runner/.dprint" >> $GITHUB_ENV
          echo "/home/runner/.dprint/bin" >> $GITHUB_PATH

      - name: Run release-plz
        uses: release-plz/action@v0.5
        with:
          command: release
        env:
          GITHUB_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN }}
          CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}

  release-plz-pr:
    name: Release PR
    runs-on: ubuntu-latest
    permissions:
      contents: write
      pull-requests: write
    concurrency:
      group: release-plz-${{ github.ref }}
      cancel-in-progress: false
    steps:
      - name: Checkout repository
        uses: actions/checkout@v6
        with:
          fetch-depth: 0

      - *protobuf-install

      - name: Install Rust toolchain
        uses: dtolnay/rust-toolchain@stable
      
      - *dprint-install

      - name: Run release-plz
        uses: release-plz/action@v0.5
        with:
          command: release-pr
        env:
          GITHUB_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN }}