File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 45
45
command : |
46
46
poetry publish --build --username "${PYPI_USERNAME}" --password "${PYPI_PASSWORD}" --no-interaction
47
47
48
+ tag_describes_master :
49
+ docker :
50
+ - image : circleci/python:3.7.3 # includes `poetry`!
51
+ steps :
52
+ - run :
53
+ name : Check that the tag being built is at the tip of master
54
+ command : |
55
+ [ "$(git describe master)" = "$CIRCLE_TAG" ]
56
+
48
57
# When to run which job
49
58
workflows :
50
59
version : 2.1
@@ -54,21 +63,22 @@ workflows:
54
63
- build
55
64
56
65
# The deployment workflow publishes the package, and is only run on a Git tag matching a
57
- # version regex being merged to master
66
+ # version regex that exists on master
58
67
deployment-workflow :
59
68
jobs :
60
69
- build :
61
70
filters :
62
71
tags :
63
72
only : /v[0-9]+(\.[0-9]+)*/
64
73
branches :
65
- only : master
74
+ ignore : /.*/
66
75
67
76
- deployment :
68
77
requires :
69
78
- build
79
+ - tag_describes_master
70
80
filters :
71
81
tags :
72
82
only : /v[0-9]+(\.[0-9]+)*/
73
83
branches :
74
- only : master
84
+ ignore : /.*/
You can’t perform that action at this time.
0 commit comments