Skip to content

Publish to Test PyPI #30

Publish to Test PyPI

Publish to Test PyPI #30

name: Publish to Test PyPI
on:
release:
types: [prereleased]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install poetry
run: pip install poetry
- name: Bump version number
run: poetry version ${{ github.event.release.tag_name }}
- name: Build package
run: poetry build
- name: Publish package
run: |
poetry config pypi-token.pypi ${{ secrets.TEST_PYPI_API_TOKEN }}
poetry publish -r testpypi