Skip to content

Commit fb47f11

Browse files
committed
Only publish to test.PyPI on tag pushes
1 parent b60cc0a commit fb47f11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-and-publish-package.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929

3030
publish-to-testpypi:
3131
runs-on: ubuntu-latest
32-
if: github.event_name == 'push' && github.ref == 'refs/heads/main' # only publish to test.PyPI on pushes to main
32+
if: startsWith(github.ref, 'refs/tags/') # only publish to test.PyPI on tag pushes (for the time being)
33+
# if: github.event_name == 'push' && github.ref == 'refs/heads/main' # only publish to test.PyPI on pushes to main
3334

3435
name: Publish LNT to TestPyPI
3536
needs: [build]

0 commit comments

Comments
 (0)