Skip to content

update docker image for building wheels #37

update docker image for building wheels

update docker image for building wheels #37

# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Upload Python Package
on: [push, pull_request]
jobs:
manylinux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Build sdist
shell: bash
run: |
pip install --upgrade pip build
python -m build --sdist
- name: Upload sdist
uses: actions/upload-artifact@v2
with:
name: sdist
path: dist
- name: Build wheels in docker
shell: bash
run: |
docker run --rm -v `pwd`:/project -w /project quay.io/pypa/manylinux2014_x86_64 bash .github/workflows/Docker/buildwheel.sh
- name: Upload Wheels
uses: actions/upload-artifact@v2
with:
name: linux-wheels
path: dist/wheelhouse
PyPI_Upload:
runs-on: ubuntu-latest
needs: ['manylinux']
steps:
- name: Download all
uses: actions/download-artifact@v2
- name: Move to dist
run: |
mkdir dist
cp */*.{whl,gz} dist/.
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}