Skip to content

ci: switch to PyPI trusted publishing #7

ci: switch to PyPI trusted publishing

ci: switch to PyPI trusted publishing #7

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- 'v*'
jobs:
pypi-publish:
name: Upload to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install build
run: python -m pip install build
- name: Build package
run: python -m build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
verbose: true