Skip to content

Publish to PyPI

Publish to PyPI #5

Workflow file for this run

name: PyPI
on:
workflow_dispatch:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
pypi-publish:
name: Build release packages
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v4
- name: Build distribution packages
run: pdm build --config-setting="--python-tag=py3" --config-setting="--py-limited-api=none"
- uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.platform }}
path: dist/