[NA] [CI] chore: grant id-token: write for PyPI Trusted Publishing (#23) #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release Drafter | |
| # Keep a draft GitHub Release up to date as PRs merge. This only maintains the | |
| # draft notes + proposed version — it never publishes. A human still reviews | |
| # the draft, bumps pyproject.toml, and clicks Publish, which is what triggers | |
| # publish.yml → PyPI. | |
| # Runs only on push to main — release-drafter reads its config from the default | |
| # branch, so it can't run meaningfully on PRs anyway (including its own). | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| update_release_draft: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # create/update the draft release | |
| pull-requests: read | |
| steps: | |
| - uses: release-drafter/release-drafter@v6.1.0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |