51 lines
1.7 KiB
YAML
51 lines
1.7 KiB
YAML
name: Build and Publish to PyPI (manylinux)
|
|
|
|
on: workflow_dispatch
|
|
|
|
jobs:
|
|
build-n-publish:
|
|
# name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
|
|
name: Build and publish Python 🐍 distributions 📦 to PyPI
|
|
# runs-on: ubuntu-22.04
|
|
runs-on: ubuntu-22.04
|
|
# strategy:
|
|
# matrix:
|
|
# python-version: ["3.6", "3.7", "3.8", "3.9"]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
# - name: Set up Python ${{ matrix.python-version }}
|
|
# uses: actions/setup-python@v2
|
|
# with:
|
|
# python-version: ${{ matrix.python-version }}
|
|
# - name: Install pypa/build
|
|
# run: >-
|
|
# python -m
|
|
# pip install
|
|
# build
|
|
# --user
|
|
# - name: Build a binary wheel and a source tarball
|
|
# run: >-
|
|
# python -m
|
|
# build
|
|
# --sdist
|
|
# --wheel
|
|
# --outdir dist/
|
|
# .
|
|
# cSpell:disable
|
|
- name: Build on manylinux
|
|
uses: RalfG/python-wheels-manylinux-build@v0.4.2-manylinux2014_x86_64
|
|
# cSpell:enable
|
|
with:
|
|
python-versions: "cp36-cp36m cp37-cp37m cp38-cp38m cp39-cp39m"
|
|
# build-requirements: "cython numpy"
|
|
# system-packages: "lrzip-devel zlib-devel"
|
|
# pre-build-command: "sh pre-build-script.sh"
|
|
# package-path: "my_project"
|
|
# pip-wheel-args: "-w ./dist --no-deps"
|
|
# pip-wheel-args: "--sdist --wheel --outdir dist/"
|
|
- name: Publish distribution 📦 to PyPI
|
|
# if: startsWith(github.ref, 'refs/tags')
|
|
uses: pypa/gh-action-pypi-publish@master
|
|
with:
|
|
password: ${{ secrets.PYPI_API_TOKEN }}
|