Skip to content

release: bump SDK version to 0.2.0 #2

release: bump SDK version to 0.2.0

release: bump SDK version to 0.2.0 #2

Workflow file for this run

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