Skip to content

2.17.0

2.17.0 #24

Workflow file for this run

name: Publish
on:
release:
types:
- published
jobs:
upload_release:
name: Upload release
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
# Include all history and tags, needed for building the right version
with:
ref: ${{ github.event.release.tag_name }}
fetch-depth: 0
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: "3.11"
cache: "pip"
- name: Install pypa/build
run: python -m pip install build --user
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/ .
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}