From a6c891a5d5683501416b9fb779ab901279e0618e Mon Sep 17 00:00:00 2001 From: FBumann <117816358+FBumann@users.noreply.github.com> Date: Tue, 24 Mar 2026 17:33:58 +0100 Subject: [PATCH] ci: remove workflow_call from publish, simplify release PyPI trusted publishing doesn't work with reusable workflow calls. Tag push from release-please (via app token) triggers publish directly. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/publish.yaml | 9 ++------- .github/workflows/release.yaml | 14 -------------- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 9c56a3a..28a0ccb 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -3,14 +3,9 @@ name: Publish on: push: tags: ["v*"] - workflow_call: - inputs: - tag: - required: true - type: string concurrency: - group: publish-${{ inputs.tag || github.ref_name }} + group: publish-${{ github.ref_name }} cancel-in-progress: false permissions: @@ -29,7 +24,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ inputs.tag || github.ref_name }} + ref: ${{ github.ref_name }} fetch-depth: 0 - uses: astral-sh/setup-uv@v7 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 14a1f18..32c7829 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,9 +12,6 @@ jobs: release-please: name: Release Please runs-on: ubuntu-24.04 - outputs: - release_created: ${{ steps.release.outputs.release_created }} - tag_name: ${{ steps.release.outputs.tag_name }} steps: - uses: actions/create-github-app-token@v2 id: app-token @@ -28,14 +25,3 @@ jobs: token: ${{ steps.app-token.outputs.token }} config-file: .release-please-config.json manifest-file: .release-please-manifest.json - - publish: - needs: release-please - if: needs.release-please.outputs.release_created - permissions: - id-token: write - contents: write - attestations: write - uses: ./.github/workflows/publish.yaml - with: - tag: ${{ needs.release-please.outputs.tag_name }}