From c64cad639317ec57022bd5dc3a3da75855ff5158 Mon Sep 17 00:00:00 2001 From: Jonas Depoix Date: Mon, 11 Nov 2024 15:03:05 +0100 Subject: [PATCH] added publish step to CI --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dffdfba..70a8871 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,3 +63,24 @@ jobs: parallel-finished: true carryforward: "run-python-3.8,run-python-3.9,run-python-3.10,run-python-3.11,run-python-3.12,run-python-3.13" + publish: +# TODO +# if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') + needs: report-coverage + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.9 + uses: actions/setup-python@v5 + with: + python-version: 3.9 + - name: Install dependencies + run: | + pip install poetry + poetry install + - name: Build + run: poetry build + - name: Publish + # TODO update repo and username/pw + run: poetry publish -r testpypi -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }}