Skip to content

Publish Python package to Test-PyPI #2

Publish Python package to Test-PyPI

Publish Python package to Test-PyPI #2

name: Publish-Test-PyPI
run-name: Publish Python package to Test-PyPI
# -- Trigger Events --------------------------------------------------------------------------------
on:
workflow_dispatch:
# -- Concurrency -----------------------------------------------------------------------------------
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
# -- Jobs ------------------------------------------------------------------------------------------
jobs:
# Publish to Test-PyPI
publish-testpypi:
runs-on: ubuntu-latest
environment: publish
permissions:
id-token: write
steps:
- name: Checkout code
id: checkout-code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install uv
id: setup-uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Publish with uv
id: publish
run: |
uv build
uv publish --publish-url https://test.pypi.org/legacy/ --trusted-publishing always