diff --git a/.github/workflows/deploy-sdist.yaml b/.github/workflows/deploy-sdist.yaml new file mode 100644 index 0000000..48ff144 --- /dev/null +++ b/.github/workflows/deploy-sdist.yaml @@ -0,0 +1,25 @@ +name: Deploy sdist + +on: + release: + types: + - published + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout source + uses: actions/checkout@v4 + + - name: Create sdist + shell: bash -l {0} + run: python -m build -s + + - name: Publish package to PyPI + if: github.event.action == 'published' + uses: pypa/gh-action-pypi-publish@v1.8.11 + with: + user: __token__ + password: ${{ secrets.pypi_password }}