Skip to content

Bump version: 5.31.0 → 5.31.1.dev0 #385

Bump version: 5.31.0 → 5.31.1.dev0

Bump version: 5.31.0 → 5.31.1.dev0 #385

Workflow file for this run

---
name: PyPI
on: push
jobs:
build-n-publish:
name: Build and publish Python distribution to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build a binary wheel and a source tarball
run: |
python -mpip install build
python -m build
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_PASSWORD }}
- name: Create a GitHub release
if: startsWith(github.ref, 'refs/tags')
run: gh release create --generate-notes "${GITHUB_REF#refs/tags/}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}