Skip to content

Release to PyPI

Release to PyPI #4

Workflow file for this run

name: Release to PyPI
permissions:
contents: write
on: workflow_dispatch
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/mydata-client
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
# retrieve your distributions here
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install latest 'build' package
run: python -m pip install --upgrade build
- name: Build Python wheel
run: python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1