Skip to content

publish-pypi

publish-pypi #17

Workflow file for this run

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