commit 7a7e1ea918867cb28d84cd7b129e737fd80bec58
parent 94f70424db2ad99c1753ed011b96418e81b524d8
Author: Árni Dagur <agudmundsson@fc-md.umd.edu>
Date: Sat, 25 Apr 2020 16:12:39 -0400
Use same publishing criteria for Github and PyPi in CICD
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
@@ -134,7 +134,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: PyPi publish
- if: github.event_name == 'release' && github.event.action == 'created'
+ if: startsWith(github.ref, 'refs/tags/')
env:
MATURIN_PASSWORD: ${{ secrets.PYPI }}
run: poetry run maturin publish --username __token__