| name: release-deploy |
| |
| on: |
| release: |
| types: [ published ] |
| |
| jobs: |
| |
| deploy: |
| runs-on: ubuntu-latest |
| strategy: |
| fail-fast: true |
| matrix: |
| python-version: [ '3.10' ] |
| |
| steps: |
| - uses: actions/checkout@v3 |
| |
| - name: Set up Python ${{ matrix.python-version }} |
| uses: actions/setup-python@v4 |
| 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 |
| with: |
| user: __token__ |
| password: ${{ secrets.PYPI_TOKEN }} |