Skip to content

v3.27.0

v3.27.0 #16

name: Publish PyPI Release
on:
release:
types: [published]
jobs:
build-dists:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: "3.12"
- run: python -m pip install build
- name: Build Dists
run: python -m build .
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: packages
path: dist/*
publish_pypi:
needs: [build-dists]
runs-on: ubuntu-latest
environment: publish-pypi
permissions:
id-token: write
steps:
- uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85 # v4.1.3
with:
name: packages
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@e53eb8b103ffcb59469888563dc324e3c8ba6f06 # v1.8.12