diff --git a/.bintray.json b/.bintray-deb.json similarity index 100% rename from .bintray.json rename to .bintray-deb.json diff --git a/.bintray-doc.json b/.bintray-doc.json new file mode 100644 index 000000000..58ebbcfc1 --- /dev/null +++ b/.bintray-doc.json @@ -0,0 +1,19 @@ +{ + "package": { + "name": "apidoc", + "repo": "docs", + "subject": "rackhd" + }, + + "version": { + "name": "master" + }, + + "files": + [ + { + "includePattern": "build/(.+\.pdf)", "uploadPattern": "$1", + } + ], + "publish": true +} diff --git a/.travis.yml b/.travis.yml index 975019cde..7b372dcd0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,13 +30,20 @@ before_deploy: - ./extra/make-deb.sh deploy: - provider: bintray - file: .bintray.json - user: $BINTRAY_USER - key: $BINTRAY_KEY - on: - branch: master - node: "4" + - provider: bintray + file: .bintray-deb.json + user: $BINTRAY_USER + key: $BINTRAY_KEY + on: + branch: master + node: "4" + - provider: bintray + file: .bintray-doc.json + user: $BINTRAY_USER + key: $BINTRAY_KEY + on: + branch: master + node: "4" notifications: slack: diff --git a/extra/make-docs.sh b/extra/make-docs.sh index 040e19471..6a6ce693e 100755 --- a/extra/make-docs.sh +++ b/extra/make-docs.sh @@ -6,3 +6,4 @@ cd $SCRIPT_DIR/.. npm run apidoc npm run taskdoc +npm run swaggerdoc