From 3ebe97300f4784b319aad14d18c92d919b202c4c Mon Sep 17 00:00:00 2001 From: Anatoly Myachev Date: Tue, 14 May 2024 02:01:04 +0200 Subject: [PATCH] FEAT-#7265: Automatic publication of Modin wheel to PyPI Signed-off-by: Anatoly Myachev --- .github/workflows/publish-to-pypi.yml | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/publish-to-pypi.yml diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml new file mode 100644 index 00000000000..cf31ca296d1 --- /dev/null +++ b/.github/workflows/publish-to-pypi.yml @@ -0,0 +1,31 @@ +name: Publish Modin wheel to PyPI + +on: pull_request + +jobs: + build-n-publish: + name: Build and publish Modin wheel to PyPI + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.9.x" + + - name: Install/update tools + run: python3 -m pip install --upgrade build wheel + - name: Build a pure Python wheel + run: python3 setup.py sdist bdist_wheel + + - uses: actions/upload-artifact@v4 + with: + name: modin-wheel-and-source-tarball + path: ./dist/ + + - name: Publish Modin wheel to PyPI + if: startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.NON_EXISTENT_TOKEN }}