Skip to content

Update python-build.yml #57

Update python-build.yml

Update python-build.yml #57

# 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: Publish
on:
push:
branches:
- main
- master
tags:
- v*
jobs:
Build_Wheel:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- 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:latest 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']

Check failure on line 53 in .github/workflows/python-publish.yml

View workflow run for this annotation

GitHub Actions / Publish

Invalid workflow file

The workflow is not valid. .github/workflows/python-publish.yml (Line: 53, Col: 13): Job 'PyPI_Upload' depends on unknown job '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 }}