Skip to content

Prepare PyPI publishing metadata and trusted workflow #1

Prepare PyPI publishing metadata and trusted workflow

Prepare PyPI publishing metadata and trusted workflow #1

Workflow file for this run

name: Publish Python Package
on:
push:
tags:
- "v*"
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Build package
working-directory: python
run: |
python -m pip install --upgrade pip hatch
hatch build
- name: Publish to PyPI (Trusted Publishing)
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: python/dist