Skip to content

Commit

Permalink
Avoid running CI deploy on untagged commits
Browse files Browse the repository at this point in the history
  • Loading branch information
randomir committed Nov 30, 2023
1 parent 101d27a commit 981391d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,16 +304,14 @@ workflows:
deploy:
jobs:
- build-dist:
filters: # required since `pypi-deploy` has tag filters AND requires `build-dist`
filters: &on-tag
tags:
only: /.*/
only: /^[0-9]+(\.[0-9]+)*((\.dev|rc)([0-9]+)?)?$/
branches:
ignore: /.*/

- pypi-deploy:
context: ocean-publish
requires:
- build-dist
filters:
tags:
only: /^[0-9]+(\.[0-9]+)*((\.dev|rc)([0-9]+)?)?$/
branches:
ignore: /.*/
filters: *on-tag

0 comments on commit 981391d

Please sign in to comment.