ci: change github.event.ref to github.ref (#1061)

This commit is contained in:
Kjell Jorner
2022-03-29 10:11:28 -04:00
committed by GitHub
parent e1bcc10600
commit 63a45ab2c0
+1 -1
View File
@@ -45,7 +45,7 @@ jobs:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
# upload to PyPI on every tag starting with 'v'
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
# alternatively, to publish when a GitHub Release is created, use the following rule:
# if: github.event_name == 'release' && github.event.action == 'published'
steps: