| name: release-deploy |
| |
| on: |
| release: |
| types: [ published ] |
| |
| jobs: |
| |
| deploy: |
| runs-on: ubuntu-latest |
| environment: release |
| permissions: |
| id-token: write |
| strategy: |
| fail-fast: true |
| matrix: |
| python-version: [ '3.10' ] |
| |
| steps: |
| - uses: actions/checkout@v4 |
| |
| - name: Set up Python ${{ matrix.python-version }} |
| uses: actions/setup-python@v5 |
| with: |
| python-version: ${{ matrix.python-version }} |
| |
| - name: Build package |
| run: | |
| python -m pip install --upgrade pip |
| python -m pip install build |
| python -m build |
| |
| - name: Publish package to PyPI |
| uses: pypa/gh-action-pypi-publish@release/v1 |