publish-pypi #17
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-testpypi | |
on: | |
release: | |
types: [published] | |
# Uncomment the following line to enable manual publishing | |
# workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Poetry | |
run: pip3 install poetry==1.8.5 | |
- name: Configure TestPyPI Repository | |
run: | | |
poetry config repositories.testpypi https://test.pypi.org/legacy/ | |
poetry config pypi-token.testpypi ${{ secrets.TEST_PYPI_PASSWORD }} | |
- name: Update Quorum version | |
run: poetry version ${{ github.ref_name }} | |
- name: Publish to TestPyPI | |
env: | |
POETRY_DYNAMIC_VERSIONING_BYPASS: ${{ github.ref_name }} | |
run: poetry publish --build --repository testpypi |