Skip to content

Commit 112e6d2

Browse files
committed
fix circle ci publish script
1 parent 9c12310 commit 112e6d2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.circleci/config.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- run:
4646
name: Upload binary
4747
command: |
48-
ghr $CIRCLE_TAG build/lib/py_sourcemap/*.so
48+
$CIRCLE_TAG && ghr $CIRCLE_TAG build/lib/py_sourcemap/*.so
4949
- run:
5050
name: Prune the output files
5151
command: |
@@ -77,7 +77,7 @@ jobs:
7777
- run:
7878
name: Upload binary
7979
command: |
80-
ghr $CIRCLE_TAG build/lib/py_sourcemap/*.so
80+
$CIRCLE_TAG && ghr $CIRCLE_TAG build/lib/py_sourcemap/*.so
8181
- run:
8282
name: Prune the output files
8383
command: |
@@ -109,7 +109,9 @@ jobs:
109109
- run:
110110
name: Upload binary
111111
command: |
112-
ghr $CIRCLE_TAG build/lib/py_sourcemap/*.so
112+
if [ "$CIRCLE_TAG" != "" ]; then \
113+
ghr $CIRCLE_TAG build/lib/py_sourcemap/*.so
114+
fi
113115
- run:
114116
name: Prune the output files
115117
command: |

0 commit comments

Comments
 (0)