From 6712cc3fe2bf96fcc840327c5e24c87fc7155c36 Mon Sep 17 00:00:00 2001 From: Martin Raspaud Date: Wed, 8 May 2024 10:56:02 +0200 Subject: [PATCH] Add sdist to pypi workflow --- .github/workflows/deploy-sdist.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/deploy-sdist.yaml 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 }}