v0.17.0 #27
Workflow file for this run
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 PyPI | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
jobs: | |
tests: | |
uses: ./.github/workflows/tests.yaml | |
publish: | |
needs: [tests] | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
- name: Set up Poetry | |
uses: Gr1N/setup-poetry@v8 | |
with: | |
poetry-version: "1.5.1" # support for Python 3.7 was dropped in 1.6.0 | |
- name: Configure access | |
run: | | |
poetry config repositories.testpypi https://test.pypi.org/legacy/ | |
poetry config pypi-token.testpypi ${{ secrets.TEST_PYPI_API_KEY }} | |
- name: Build and publish package | |
run: poetry publish --build -r testpypi |