Skip to content

Commit cb91b2b

Browse files
committed
move to different triggering approach
1 parent 06bb7d7 commit cb91b2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ jobs:
197197
runs-on: ubuntu-latest
198198

199199
# Publish docs to RTD when tagged
200-
if: startsWith(github.ref, 'refs/tags/') && github.event_name == 'push'
200+
if: github.ref_type == 'tag'
201201

202202
steps:
203203
- name: Debug GitHub context
@@ -230,7 +230,7 @@ jobs:
230230
runs-on: ubuntu-latest
231231

232232
# Publish to PyPI when tagged
233-
if: startsWith(github.ref, 'refs/tags/') && github.event_name == 'push'
233+
if: github.ref_type == 'tag'
234234

235235
environment:
236236
name: pypi

0 commit comments

Comments
 (0)