Skip to content

Commit c27397a

Browse files
committed
Fix CI
Only try testpypi if it's tagged Fix URL for testpypi and pypi
1 parent 31732fd commit c27397a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ jobs:
3333

3434
publish-to-testpypi:
3535
name: Publish Python 🐍 distribution 📦 to TestPyPI
36+
if: startsWith(github.ref, 'refs/tags/testpypi') # only publish to PyPI on test tag pushes
3637
needs:
3738
- build
3839
runs-on: ubuntu-latest
3940

4041
environment:
4142
name: testpypi
42-
url: https://test.pypi.org/p/labthings-picamera2
43+
url: https://test.pypi.org/p/labthings-sangaboard
4344

4445
permissions:
4546
id-token: write # IMPORTANT: mandatory for trusted publishing
@@ -64,7 +65,7 @@ jobs:
6465
runs-on: ubuntu-latest
6566
environment:
6667
name: pypi
67-
url: https://pypi.org/p/labthings-picamera2
68+
url: https://pypi.org/p/labthings-sangaboard
6869
permissions:
6970
id-token: write # IMPORTANT: mandatory for trusted publishing
7071
steps:

0 commit comments

Comments
 (0)