From 5851d2b03574fbe2371a6bfa9fd2fa3ed95c9fd3 Mon Sep 17 00:00:00 2001 From: mikeAdamss Date: Sun, 23 Nov 2025 09:58:47 +0000 Subject: [PATCH] add workflow for publishing versions to pypi --- .github/workflows/publish.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..24013d1 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,33 @@ +name: Publish to PyPI + +on: + push: + tags: + - "v*.*.*" # Triggers when you push a version tag like v1.2.3 + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Install Poetry + run: | + pip install poetry + + - name: Install dependencies + run: | + poetry install --no-root + + - name: Build and publish + env: + POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }} + run: | + poetry publish --build