Skip to content

Publish to TestPyPI

Publish to TestPyPI #3

Workflow file for this run

name: Publish to TestPyPI
on:
workflow_dispatch: # manual trigger only
jobs:
test-publish:
runs-on: ubuntu-latest
environment: testpypi
permissions:
contents: read # checkout private repo
id-token: write # trusted publishing
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.2.2
- uses: astral-sh/setup-uv@e4db8464a088ece1b920f60402e813ea4de65b8f # v4
- name: Build
run: uv build
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
with:
repository-url: https://test.pypi.org/legacy/