Skip to content

Publish to TestPyPI #21

Publish to TestPyPI

Publish to TestPyPI #21

Workflow file for this run

name: Publish to TestPyPI
on:
push:
tags:
- "v*.*.*"
jobs:
publish-testpypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install build tools
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}