Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
Only try testpypi if the commit is tagged testpypi
Use correct PyPI URLs
  • Loading branch information
rwb27 committed Dec 20, 2024
1 parent 31732fd commit 266cbdb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 266cbdb

Please sign in to comment.