v1.0.0 — OAuth 2.1, Compliance Engine, Dual-Mode Auth #6
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
| # Publish airlock-protocol to PyPI using trusted publishing (OIDC). | |
| # Prerequisites: PyPI project "airlock-protocol" must allow GitHub as a trusted publisher | |
| # for this repo/environment. See https://docs.pypi.org/trusted-publishers/ | |
| name: Publish PyPI | |
| on: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| # Optional: add `environment: pypi` once a GitHub Environment exists for approval gates. | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install Hatch | |
| run: pip install hatch | |
| - name: Build sdist and wheel | |
| run: hatch build | |
| - name: Publish to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 |