Skip to content

Commit 42e86d2

Browse files
committed
ci: refactor bintray use to only use gh actions
1 parent ea80c3c commit 42e86d2

File tree

6 files changed

+8
-50
lines changed

6 files changed

+8
-50
lines changed

.ci/publish_bintray.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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"

.ci/publish_canary.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

.ci/publish_dev.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

.ci/publish_rc.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/workflow.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
- dev
66
- canary
77
- rc
8-
- master
98

109
jobs:
1110
setup-build-publish-deploy:
@@ -20,6 +19,6 @@ jobs:
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 }}

.travis.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,13 @@ node_js:
55

66
stages:
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

159
jobs:
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-
3715
before_deploy:
3816
- npm run doc
3917
- npm run build

0 commit comments

Comments
 (0)