Skip to content

Bump version: 1.3.26 → 1.3.27 #26

Bump version: 1.3.26 → 1.3.27

Bump version: 1.3.26 → 1.3.27 #26

Workflow file for this run

name: Publish Python 🐍 packages 📦 to PyPI
on:
push:
tags:
- 'v?[0-9]+.[0-9]+.[0-9]+'
jobs:
build-sdist:
runs-on: ubuntu-latest
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
- name: Build source distribution
run: |
pip install -U setuptools pip
python setup.py sdist
- uses: actions/upload-artifact@v2
with:
name: dist
path: dist/*.tar.*
build-wheels:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest ]
cibw_python: [ "cp39-*", "cp310-*", "cp311-*" ]
cibw_arch: [ "auto64" ]
defaults:
run:
shell: bash
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
steps:
- uses: actions/checkout@v3
- uses: pypa/[email protected]
env:
CIBW_BUILD_VERBOSITY: 1
CIBW_BUILD: ${{ matrix.cibw_python }}
CIBW_ARCHS: ${{ matrix.cibw_arch }}
- uses: actions/upload-artifact@v2
with:
name: dist
path: wheelhouse/*.whl
publish:
needs: [build-sdist, build-wheels]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v2
with:
name: dist
path: dist/
- run: |
ls -al dist/
- name: Upload to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}