Skip to content

v0.6.0

v0.6.0 #6

Workflow file for this run

name: Publish to PyPI
# Publishes pmox to PyPI using Trusted Publishing (OIDC) — no API token needed.
# Fires automatically when a GitHub Release is published, and can be run manually
# from the Actions tab (used for the first 0.1.0 release, whose tag already exists).
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
jobs:
publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pmox
permissions:
id-token: write # required for PyPI Trusted Publishing (OIDC)
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Build sdist and wheel
run: |
python -m pip install --upgrade build
python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1