Skip to content

Commit

Permalink
Only try and push to pypi on a tag
Browse files Browse the repository at this point in the history
CircleCI just tried to push to pypi even though we didn't tag anything.
This seems to be because you have to have the entire workflow tagged
with the filters. This is stupid. Rewrite it in a way that hopefully
doesn't push to pypi all the time.
  • Loading branch information
jamielennox committed May 2, 2018
1 parent 56ec9b0 commit 67ccb59
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,20 @@ workflows:
jobs:
- py27
- py36
publish:
jobs:
- py27:
filters:
branches:
only: master
tags:
only: /^\d+\.\d+\.\d+$/
- py36:
filters:
branches:
only: master
tags:
only: /^\d+\.\d+\.\d+$/
- pypi:
requires:
- py27
Expand Down

0 comments on commit 67ccb59

Please sign in to comment.