Skip to content

Publish to PyPI.org #13

Publish to PyPI.org

Publish to PyPI.org #13

Workflow file for this run

name: Publish to PyPI.org
on:
release:
types: [published]
workflow_dispatch:
jobs:
pypi:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install twine flake8
- name: Build manylinux Python wheels
uses: RalfG/[email protected]_x86_64
with:
python-versions: 'cp310-cp310 cp311-cp311'
build-requirements: 'numpy'
- name: Publish wheels to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload dist/*-manylinux*.whl --verbose
with:

Check failure on line 30 in .github/workflows/pypi_publish.yml

View workflow run for this annotation

GitHub Actions / Publish to PyPI.org

Invalid workflow file

The workflow is not valid. .github/workflows/pypi_publish.yml (Line: 30, Col: 9): Unexpected value 'with'
password: ${{ secrets.PYPI_API_TOKEN }}