Skip to content

Publish to Test PyPI #21

Publish to Test PyPI

Publish to Test PyPI #21

Workflow file for this run

name: Publish to Test PyPI
on:
push:
tags:
- '*.*.*'
workflow_dispatch:
jobs:
test_pypi_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Poetry Action
uses: snok/[email protected]
- run: poetry install
# - run: poetry run pytest
- run: poetry config repositories.testpypi https://test.pypi.org/legacy/
- run: poetry config pypi-token.testpypi ${{ secrets.TEST_PYPI_API_KEY }}
- name: Publish package
run: poetry publish --build -r testpypi