- name: Build docs
working-directory: docs
run: sphinx-build -E -W -b html . _build/html
+ - name: Build Python package
+ if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
+ run: |
+ pip install --upgrade build twine
+ for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do
+ sed -i -e "s/0.0.0+auto.0/1.2.3/" $file;
+ done;
+ python -m build
+ twine check dist/*