Skip to content

Commit 57d518c

Browse files
committed
only on master push
1 parent 13e54d6 commit 57d518c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/publish-to-test-pypi.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
22

33
on: push
44

5-
#on:
6-
#push:
7-
#branches: [master]
5+
#on:
6+
#push:
7+
#branches: [master]
88

99
jobs:
1010
build-n-publish:
@@ -31,6 +31,7 @@ jobs:
3131
--out-dir dist/
3232
.
3333
- name: Publish distribution 📦 to Test PyPI
34+
if: endsWith(github.ref, 'master')
3435
uses: pypa/gh-action-pypi-publish@master
3536
with:
3637
password: ${{ secrets.test_pypi_password }}

0 commit comments

Comments
 (0)