Skip to content

Commit b981897

Browse files
fix: use pat to trigger publish directly from release (#12)
1 parent 06216e8 commit b981897

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/release-please.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: googleapis/release-please-action@v4
19+
with:
20+
# PAT required so release:created triggers publish.yml (GITHUB_TOKEN does not).
21+
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
22+
release-type: python

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,12 @@ not invoke ffmpeg, pyannote, or any LLM.
482482

483483
**Retry a missed publish** — re-run the failed **Publish to PyPI** workflow from Actions (the release event is preserved).
484484

485-
One-time: configure a [PyPI trusted publisher](https://docs.pypi.org/trusted-publishers/) for workflow `publish.yml` on repo `gitcommitshow/resilient-stt`. In the org/repo settings, allow GitHub Actions to create and approve pull requests if Release PRs do not appear.
485+
One-time setup:
486+
487+
- **PyPI**[trusted publisher](https://docs.pypi.org/trusted-publishers/) for workflow `publish.yml` on repo `gitcommitshow/resilient-stt`.
488+
- **release-please** — repo secret `RELEASE_PLEASE_TOKEN`: fine-grained PAT (or classic `repo`) with **Contents** and **Pull requests** read/write on this repo. Without it, releases are created with `GITHUB_TOKEN` and **Publish to PyPI** will not run.
489+
490+
In org/repo settings, allow GitHub Actions to create and approve pull requests if Release PRs do not appear.
486491

487492
See [CHANGELOG.md](CHANGELOG.md) for release history.
488493

0 commit comments

Comments
 (0)