Skip to content

Commit 1cda6b8

Browse files
committed
Only push to test.pypi on pushes to main
1 parent 907b9fe commit 1cda6b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +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
33+
3234
name: Publish LNT to TestPyPI
3335
needs: [build]
3436
environment:

0 commit comments

Comments
 (0)