From c4025e408f744147084ea4c104f4a264fb442cb2 Mon Sep 17 00:00:00 2001 From: Xenira <1288524+Xenira@users.noreply.github.com> Date: Fri, 7 Nov 2025 09:20:14 +0100 Subject: [PATCH] ci(release): trigger release via reusable workflow https://docs.github.com/en/actions/how-tos/reuse-automations/reuse-workflows Refs: #579, #578 --- .github/workflows/build.yml | 6 ++++++ .github/workflows/release-plz.yml | 13 ++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cc0a2367e..0c951c922 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -226,3 +226,9 @@ jobs: - name: Test with embed feature run: cargo test --workspace --release --features closure,embed,anyhow --no-fail-fast + + release: + name: Create Release + if: github.ref == 'refs/heads/master' && github.event_name == 'push' + needs: [lint, build, test-embed] + uses: extphprs/ext-php-rs/.github/workflows/release-plz.yml@master diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml index 87353ed06..a36e73d05 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -5,21 +5,19 @@ permissions: contents: write on: - workflow_run: - workflows: ["Build and Lint"] - branches: ["master"] - types: - - completed + workflow_call: + workflow_dispatch: jobs: release-plz-release: name: Release-plz release runs-on: ubuntu-latest + if: github.ref == 'refs/heads/master' permissions: id-token: write env: - clang: '17' - php_version: '8.4' + clang: "17" + php_version: "8.4" steps: - name: Checkout repository uses: actions/checkout@v5 @@ -64,6 +62,7 @@ jobs: release-plz-pr: name: Release-plz PR runs-on: ubuntu-latest + if: github.ref == 'refs/heads/master' permissions: id-token: write concurrency: