rlt 0.5.0

A universal load testing library for Rust, with real-time TUI support
Documentation
name: Release

on:
  push:
    tags:
      - "v*.*.*"

jobs:
  changelog:
    name: Generate and publish changelog
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - name: Checkout
        uses: actions/checkout@v6
        with:
          fetch-depth: 0

      - name: Generate a changelog
        uses: orhun/git-cliff-action@v4
        id: git-cliff
        with:
          config: cliff.toml
          args: -v --latest --strip header
        env:
          OUTPUT: CHANGES.md
          GITHUB_REPO: ${{ github.repository }}

      - name: Polish changelog
        shell: bash
        run: sed -i '1,2d' CHANGES.md

      - name: Upload the changelog
        uses: ncipollo/release-action@v1
        with:
          # draft: true
          allowUpdates: true
          bodyFile: CHANGES.md