MilesCranmer commited on
Commit
17a699d
β€’
1 Parent(s): c97f60d

Only run pypi test deploy on new version

Browse files
Files changed (1) hide show
  1. .github/workflows/pypi_deploy.yml +1 -0
.github/workflows/pypi_deploy.yml CHANGED
@@ -20,6 +20,7 @@ jobs:
20
  - name: "Build package"
21
  run: python setup.py sdist bdist_wheel
22
  - name: "Publish distribution πŸ“¦ to Test PyPI"
 
23
  uses: pypa/gh-action-pypi-publish@release/v1
24
  with:
25
  password: ${{ secrets.TEST_PYPI_API_TOKEN }}
 
20
  - name: "Build package"
21
  run: python setup.py sdist bdist_wheel
22
  - name: "Publish distribution πŸ“¦ to Test PyPI"
23
+ if: startsWith(github.ref, 'refs/tags')
24
  uses: pypa/gh-action-pypi-publish@release/v1
25
  with:
26
  password: ${{ secrets.TEST_PYPI_API_TOKEN }}