Publish to Test PyPI #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 test-pypi |