File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -191,8 +191,9 @@ jobs:
191
191
192
192
193
193
pypi-publish :
194
- # https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert
195
194
name : Check tag and publish
195
+ # Only trigger this for tag changes.
196
+ if : startsWith(github.ref, 'refs/tags/')
196
197
runs-on : ubuntu-latest
197
198
environment : release-pypi
198
199
permissions :
@@ -226,11 +227,9 @@ jobs:
226
227
run : ls --recursive dist/
227
228
228
229
- name : Check matched tag version and branch version - on tag
229
- if : startsWith(github.ref, 'refs/tags/')
230
230
run : python admin/check_tag_version_match.py "${{ github.ref }}"
231
231
232
232
- name : Publish to PyPI - on tag
233
- if : startsWith(github.ref, 'refs/tags/')
234
233
uses : pypa/gh-action-pypi-publish@a56da0b891b3dc519c7ee3284aff1fad93cc8598
235
234
236
235
You can’t perform that action at this time.
0 commit comments