Skip to content

Commit 5aa24a9

Browse files
FBumannclaude
andauthored
ci: remove workflow_call from publish, simplify release (#64)
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) <noreply@anthropic.com>
1 parent 3cb4827 commit 5aa24a9

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

.github/workflows/publish.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@ name: Publish
33
on:
44
push:
55
tags: ["v*"]
6-
workflow_call:
7-
inputs:
8-
tag:
9-
required: true
10-
type: string
116

127
concurrency:
13-
group: publish-${{ inputs.tag || github.ref_name }}
8+
group: publish-${{ github.ref_name }}
149
cancel-in-progress: false
1510

1611
permissions:
@@ -29,7 +24,7 @@ jobs:
2924
steps:
3025
- uses: actions/checkout@v4
3126
with:
32-
ref: ${{ inputs.tag || github.ref_name }}
27+
ref: ${{ github.ref_name }}
3328
fetch-depth: 0
3429

3530
- uses: astral-sh/setup-uv@v7

.github/workflows/release.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ jobs:
1212
release-please:
1313
name: Release Please
1414
runs-on: ubuntu-24.04
15-
outputs:
16-
release_created: ${{ steps.release.outputs.release_created }}
17-
tag_name: ${{ steps.release.outputs.tag_name }}
1815
steps:
1916
- uses: actions/create-github-app-token@v2
2017
id: app-token
@@ -28,14 +25,3 @@ jobs:
2825
token: ${{ steps.app-token.outputs.token }}
2926
config-file: .release-please-config.json
3027
manifest-file: .release-please-manifest.json
31-
32-
publish:
33-
needs: release-please
34-
if: needs.release-please.outputs.release_created
35-
permissions:
36-
id-token: write
37-
contents: write
38-
attestations: write
39-
uses: ./.github/workflows/publish.yaml
40-
with:
41-
tag: ${{ needs.release-please.outputs.tag_name }}

0 commit comments

Comments
 (0)