File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,13 @@ deploy: &deploy
40
40
- run :
41
41
name : ' Deploy to Github Release'
42
42
command : |
43
- export GIT_TAG="$(git describe --tags $(git rev-list --tags --max-count=1))"; \
44
- ghr -u "${CIRCLE_PROJECT_USERNAME}" -r "${CIRCLE_PROJECT_REPONAME}" "${GIT_TAG}" build/lib/py_sourcemap/*.so
43
+ if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
44
+ then
45
+ export GIT_TAG="$(git describe --tags $(git rev-list --tags --max-count=1))"; \
46
+ ghr -u "${CIRCLE_PROJECT_USERNAME}" -r "${CIRCLE_PROJECT_REPONAME}" "${GIT_TAG}" build/lib/py_sourcemap/*.so
47
+ else
48
+ echo "Not a release, skipping publish"
49
+ fi
45
50
46
51
version : 2
47
52
jobs :
@@ -98,7 +103,13 @@ jobs:
98
103
- checkout
99
104
- run :
100
105
name : ' Deploy to Github Release'
101
- command : pip install -r requirement-dev.txt && make release
106
+ command : |
107
+ if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
108
+ then
109
+ pip install -r requirement-dev.txt && make release
110
+ else
111
+ echo "Not a release, skipping publish"
112
+ fi
102
113
103
114
nightly :
104
115
machine : true
You can’t perform that action at this time.
0 commit comments