File tree Expand file tree Collapse file tree 6 files changed +8
-50
lines changed Expand file tree Collapse file tree 6 files changed +8
-50
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ BRANCH=$1
3+ curl -u " rrooij:$BINTRAY_API_TOKEN " " https://api.bintray.com/npm/terminusdb/npm-$BRANCH /auth" > .npmrc
4+ curl -XDELETE " https://api.bintray.com/packages/terminusdb/npm-$BRANCH /terminusdb:terminusdb-client" -u " rrooij:$BINTRAY_API_TOKEN "
5+ npm publish
6+ curl -T " dist/terminusdb-client.min.js" -u" rrooij:$BINTRAY_API_TOKEN " " https://api.bintray.com/content/terminusdb/terminusdb/terminusdb-client/$BRANCH /$BRANCH /terminusdb-client.min.js?publish=1&override=1"
7+ curl -T " dist/terminusdb-client.min.js.map" -u" rrooij:$BINTRAY_API_TOKEN " " https://api.bintray.com/content/terminusdb/terminusdb/terminusdb-client/$BRANCH /$BRANCH /terminusdb-client.min.js.map?publish=1&override=1"
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 55 - dev
66 - canary
77 - rc
8- - master
98
109jobs :
1110 setup-build-publish-deploy :
2019 node-version : 14
2120 - run : npm install
2221 - run : npm run build
23- - run : bash ".ci/publish_ ${GITHUB_REF##*/}.sh "
22+ - run : bash ".ci/publish_bintray.sh" " ${GITHUB_REF##*/}"
2423 env :
2524 BINTRAY_API_TOKEN : ${{ secrets.BINTRAY_API_TOKEN }}
Original file line number Diff line number Diff line change @@ -5,35 +5,13 @@ node_js:
55
66stages :
77 - build
8- - name : deploy_dev
9- if : branch = dev
10- - name : deploy_rc
11- if : branch = rc
12- - name : deploy_canary
13- if : branch = canary
148
159jobs :
1610 include :
1711 - stage : build
1812 after_script :
1913 - npm run coveralls-after
2014
21- - stage : deploy_dev
22- script :
23- - npm run build
24- - bash .ci/publish_dev.sh
25-
26- - stage : deploy_rc
27- script :
28- - npm run build
29- - bash .ci/publish_rc.sh
30-
31- - stage : deploy_canary
32- script :
33- - npm run build
34- - bash .ci/publish_canary.sh
35-
36-
3715before_deploy :
3816 - npm run doc
3917 - npm run build
You can’t perform that action at this time.
0 commit comments