Skip to content

Python package publish #3

Python package publish

Python package publish #3

Workflow file for this run

name: Python package publish
on:
release:
types: [created]
workflow_dispatch:
jobs:
build_wheels:
name: Build and publish package / wheel
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '>=3.9'
- name: Build package / wheel
run: |
python -m pip install build
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1