Skip to content

Publish to PyPI

Publish to PyPI #7

Workflow file for this run

name: Publish to PyPI
on:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
uses: ./.github/workflows/test.yml
publish:
runs-on: ubuntu-latest
needs:
- test
environment: release
permissions:
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Hatch
uses: pypa/hatch@install
- name: Build Package
run: hatch build -c
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1