Skip to content

Commit

Permalink
Removed regular expression from if condition to release and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanjeev Kumar committed Dec 9, 2023
1 parent 5bb5b80 commit ddc19c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ jobs:
- name: Publish distribution 📦 to PyPI
if: |
github.event_name == 'push' &&
startsWith(github.ref, 'refs/tags/v') &&
contains(github.ref, 'refs/tags/v') &&
contains(github.ref, /^refs\/tags\/v\d+\.\d+\.\d+$/)
startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down

0 comments on commit ddc19c4

Please sign in to comment.