From 266cbdb31b31b5e1dabf0508a45d6008e6e56422 Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Fri, 20 Dec 2024 10:43:34 +0000 Subject: [PATCH] Fix CI Only try testpypi if the commit is tagged testpypi Use correct PyPI URLs --- .github/workflows/publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ea118ed..2476eaf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -33,13 +33,14 @@ jobs: publish-to-testpypi: name: Publish Python 🐍 distribution 📦 to TestPyPI + if: startsWith(github.ref, 'refs/tags/testpypi') # only publish to PyPI on test tag pushes needs: - build runs-on: ubuntu-latest environment: name: testpypi - url: https://test.pypi.org/p/labthings-picamera2 + url: https://test.pypi.org/p/labthings-sangaboard permissions: id-token: write # IMPORTANT: mandatory for trusted publishing @@ -64,7 +65,7 @@ jobs: runs-on: ubuntu-latest environment: name: pypi - url: https://pypi.org/p/labthings-picamera2 + url: https://pypi.org/p/labthings-sangaboard permissions: id-token: write # IMPORTANT: mandatory for trusted publishing steps: