Skip to content

Commit 90eef8d

Browse files
authored
fix(publish): updated the tag and if condition (#76)
Signed-off-by: Ujjwal Kumar <[email protected]>
1 parent 358418b commit 90eef8d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on:
44
push:
55
branches: [master]
6-
tags: ['v*']
6+
tags: ['*']
77
pull_request:
88
branches: [master]
99

@@ -37,6 +37,7 @@ jobs:
3737
env:
3838
PYTHON_VERSION: ${{ matrix.python-version }}
3939
run: tox
40+
4041
- name: Install release dependencies
4142
if: github.ref == 'refs/heads/master' && matrix.python-version == '3.8'
4243
run: |
@@ -57,7 +58,8 @@ jobs:
5758
# Separate job for PyPI publishing
5859
publish:
5960
needs: test
60-
if: startsWith(github.ref, 'refs/tags/')
61+
# Changed the condition to check for any tag
62+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
6163
runs-on: ubuntu-latest
6264
environment: ci
6365
steps:

0 commit comments

Comments
 (0)