From ded5366eea75844ce1efe6831fb460aa248177cf Mon Sep 17 00:00:00 2001 From: Konstantinos Athanasiou Date: Wed, 21 Jan 2026 23:38:25 +0200 Subject: [PATCH 1/2] feat: add support for release-plz --- .github/workflows/changelog.yaml | 24 -------------- .github/workflows/release-plz.yml | 52 +++++++++++++++++++++++++++++++ release-plz.toml | 6 ++++ 3 files changed, 58 insertions(+), 24 deletions(-) delete mode 100644 .github/workflows/changelog.yaml create mode 100644 .github/workflows/release-plz.yml create mode 100644 release-plz.toml diff --git a/.github/workflows/changelog.yaml b/.github/workflows/changelog.yaml deleted file mode 100644 index f2fa257..0000000 --- a/.github/workflows/changelog.yaml +++ /dev/null @@ -1,24 +0,0 @@ -name: changelog.yaml -on: - pull_request: - push: - tags: - - '**[0-9]+.[0-9]+.[0-9]+*' - -jobs: - generate-changelog: - name: Generate changelog - runs-on: "ubuntu-latest" - outputs: - release_body: ${{ steps.git-cliff.outputs.content }} - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Generate a changelog - uses: orhun/git-cliff-action@main - id: git-cliff - with: - config: cliff.toml - args: -vv --latest --no-exec --github-repo ${{ github.repository }} diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml new file mode 100644 index 0000000..05a1ebe --- /dev/null +++ b/.github/workflows/release-plz.yml @@ -0,0 +1,52 @@ +name: Release-plz + +on: + push: + branches: + - main + +jobs: + release-plz-release: + name: Release-plz release + runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'dinosath' }} + permissions: + contents: write + id-token: write + steps: + - &checkout + name: Checkout repository + uses: actions/checkout@v6 + with: + fetch-depth: 0 + persist-credentials: true + token: ${{ secrets.RELEASE_PLZ_TOKEN }} + - &install-rust + name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + - name: Run release-plz + uses: release-plz/action@v0.5 + with: + command: release + env: + GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }} + + release-plz-pr: + name: Release-plz PR + runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'dinosath' }} + permissions: + pull-requests: write + contents: write + concurrency: + group: release-plz-${{ github.ref }} + cancel-in-progress: false + steps: + - *checkout + - *install-rust + - name: Run release-plz + uses: release-plz/action@v0.5 + with: + command: release-pr + env: + GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }} diff --git a/release-plz.toml b/release-plz.toml new file mode 100644 index 0000000..67edffa --- /dev/null +++ b/release-plz.toml @@ -0,0 +1,6 @@ +[workspace] +changelog_config = "cliff.toml" +git_only = true +publish = false +release_always = false +git_release_enable = false From f8e6d5710be73ca5439b60b7ef294197d21733a0 Mon Sep 17 00:00:00 2001 From: Konstantinos Athanasiou Date: Wed, 21 Jan 2026 23:44:48 +0200 Subject: [PATCH 2/2] feat: release-plz remove fork specifics --- .github/workflows/release-plz.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml index 05a1ebe..42dd0f4 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -9,7 +9,6 @@ jobs: release-plz-release: name: Release-plz release runs-on: ubuntu-latest - if: ${{ github.repository_owner == 'dinosath' }} permissions: contents: write id-token: write @@ -34,7 +33,6 @@ jobs: release-plz-pr: name: Release-plz PR runs-on: ubuntu-latest - if: ${{ github.repository_owner == 'dinosath' }} permissions: pull-requests: write contents: write