release: v0.4.0 — regenerate against busbar v1.5.3 spec #4
Workflow file for this run
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 | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| # Publishing uses PyPI OIDC "trusted publishing": GitHub Actions mints a short-lived | |
| # identity token that PyPI verifies against a trusted publisher you configure once — | |
| # no API token, no secret, nothing that expires or needs rotating. | |
| # | |
| # One-time setup (owner: GetBusbar, repo: busbar-python, workflow: release.yml, | |
| # environment: leave blank) at: | |
| # https://pypi.org/manage/project/busbar-admin/settings/publishing/ | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write # required for OIDC trusted publishing | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install generator (pinned) + build backend | |
| run: | | |
| pip install -r requirements-dev.txt | |
| pip install build | |
| - name: Regenerate client from openapi.json | |
| run: make generate | |
| - name: Fail if the committed client is stale | |
| run: git diff --exit-code -- busbar_admin setup.py | |
| - name: Build sdist + wheel | |
| run: python -m build | |
| - name: Publish to PyPI (OIDC trusted publishing — no token) | |
| uses: pypa/gh-action-pypi-publish@release/v1 |