Skip to content

Commit a79b4e0

Browse files
committed
Fix workflow condition
1 parent 84c5786 commit a79b4e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ jobs:
5050

5151
pypi-publish:
5252
name: Publish streamlit-scroll-navigation to PyPI
53-
if: startsWith(github.ref, 'refs/tags/') # Only publish on tagged commits
54-
if: github.ref == 'refs/heads/main' # Only publish on main branch
53+
if: startsWith(github.ref, 'refs/tags/') && github.ref == 'refs/heads/main' # Only publish on tagged commits and on main branch
5554
needs: build
5655
runs-on: ubuntu-latest
5756
environment:

0 commit comments

Comments
 (0)