Skip to content

Commit

Permalink
FEAT-#7265: Automatic publication of Modin wheel to PyPI
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev committed May 14, 2024
1 parent 1c0d9a6 commit 3ebe973
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 3ebe973

Please sign in to comment.