From e5559028b7c3ef4fd2b647e858ccd4b97794afb0 Mon Sep 17 00:00:00 2001 From: Samuel Garcia Date: Fri, 13 Mar 2026 09:21:08 +0100 Subject: [PATCH] One more try --- .github/workflows/publish-to-pypi.yml | 41 ++++++++------------------- 1 file changed, 12 insertions(+), 29 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index f5c915e..53c175a 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -13,37 +13,20 @@ on: jobs: publish-pypi: runs-on: ubuntu-latest - steps: - - name: Set up Python 3.13 - uses: actions/setup-python@v2 - with: - python-version: 3.13 - - - name: Install tools - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine build - - - name: Checkout tag ${{ github.event.inputs.tag }} - uses: actions/checkout@v2 - with: - ref: ${{ github.event.inputs.tag }} - - - name: Build source distribution and wheel - run: | - python -m build --sdist --wheel - - name: List distribution artifacts - run: | - ls -l dist/ - - # - name: Publish package to PyPI - # uses: pypa/gh-action-pypi-publish@v1.13.0 - # with: - # user: __token__ - # password: ${{ secrets.PYPI_API_TOKEN }} + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.13' + - name: Install dependencies for testing + run: | + python -m pip install -U pip # Official recommended way + pip install pytest + pip install setuptools wheel twine build - - name: Publish on PyPI + - name: Publish on PyPI env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}