name: Release on: push: tags: - 'v*' permissions: contents: write jobs: release: if: github.event.repository.visibility == 'public' runs-on: ubuntu-latest name: Create Release steps: - name: Checkout uses: actions/checkout@v6 with: fetch-depth: 0 - name: Generate changelog id: changelog uses: orhun/git-cliff-action@v4 with: config: cliff.toml args: --latest --strip header env: OUTPUT: CHANGELOG.md - name: Create release uses: softprops/action-gh-release@v2 with: body_path: CHANGELOG.md generate_release_notes: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}