.github/workflows/deploy-release.yml
raw| 1 | name: Deploy release |
| 2 | on: |
| 3 | push: |
| 4 | tags: |
| 5 | - '*' |
| 6 | jobs: |
| 7 | pypi: |
| 8 | permissions: |
| 9 | id-token: write |
| 10 | runs-on: ubuntu-latest |
| 11 | steps: |
| 12 | - uses: actions/checkout@v4 |
| 13 | - name: Setup Python |
| 14 | uses: actions/setup-python@v5 |
| 15 | with: |
| 16 | python-version: '3.12' |
| 17 | - name: Install dependencies |
| 18 | run: pip install -U build |
| 19 | - name: Build package |
| 20 | run: python -m build |
| 21 | - name: Publish to PyPI |
| 22 | uses: pypa/gh-action-pypi-publish@release/v1 |