Skip to content

Commit 2e5a0cd

Browse files
mikipaletclaude
andcommitted
ci: chain Maven Central publish after auto-releases
Releases created with GITHUB_TOKEN never fire the release:published trigger in publish.yml (GitHub anti-recursion rule), so Maven Central has been stuck at 0.0.307 since 2026-06-01 while GitHub releases advanced to v0.0.514. Dispatch publish.yml explicitly instead. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent f185293 commit 2e5a0cd

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/generate.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
permissions:
1313
contents: write
14+
actions: write
1415

1516
steps:
1617
- name: Checkout repository
@@ -135,3 +136,13 @@ jobs:
135136
```
136137
env:
137138
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
139+
140+
- name: Trigger Maven Central publish
141+
# Releases created with GITHUB_TOKEN do not fire `release: published`
142+
# workflows (GitHub anti-recursion rule), so publish.yml never ran on
143+
# auto-releases and Maven Central sat at 0.0.307 (2026-06-01) while
144+
# GitHub releases advanced. workflow_dispatch is exempt from that rule.
145+
if: steps.changes.outputs.has_changes == 'true'
146+
env:
147+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
148+
run: gh workflow run publish.yml --ref main

0 commit comments

Comments
 (0)