.github/workflows/release.yml
raw| 1 | name: release |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | tags: |
| 6 | - v* |
| 7 | |
| 8 | jobs: |
| 9 | |
| 10 | upload: |
| 11 | runs-on: ubuntu-latest |
| 12 | permissions: |
| 13 | id-token: write |
| 14 | |
| 15 | steps: |
| 16 | - uses: actions/checkout@v3 |
| 17 | |
| 18 | - name: Set up Python |
| 19 | uses: actions/setup-python@v4 |
| 20 | with: |
| 21 | python-version: '3.11' |
| 22 | |
| 23 | - name: Install build |
| 24 | run: pip install build |
| 25 | |
| 26 | - name: Create build |
| 27 | run: python -m build |
| 28 | |
| 29 | - name: Publish package distributions to PyPI |
| 30 | uses: pypa/gh-action-pypi-publish@release/v1 |