From 9e1d81badcf44fff1c3a195b0cbb22aa3a1cbc80 Mon Sep 17 00:00:00 2001 From: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Date: Wed, 16 Oct 2024 12:26:23 +0300 Subject: [PATCH] Fix publishing --- .github/workflows/tests.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d6d0d31..45829a3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -87,12 +87,14 @@ jobs: uses: actions/setup-python@v5 with: python-version: 3.8 - - name: install flit + - name: install flit and twine run: | - pip install flit~=3.0 + pip install flit~=3.0 twine - name: Build and publish run: | - flit publish + flit build + twine check --strict dist/* + twine upload dist/* env: - FLIT_USERNAME: __token__ - FLIT_PASSWORD: ${{ secrets.PYPI_KEY }} + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}