Skip to content

Update .github/workflows/publish-to-pypi.yml #6

Update .github/workflows/publish-to-pypi.yml

Update .github/workflows/publish-to-pypi.yml #6

Workflow file for this run

name: Publish Modin wheel to PyPI
on: push
tags:

Check failure on line 4 in .github/workflows/publish-to-pypi.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish-to-pypi.yml

Invalid workflow file

You have an error in your yaml syntax on line 4
- '*'
jobs:
build-n-publish:
name: Build and publish Modin wheel to PyPI
environment: release
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- 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