-
Notifications
You must be signed in to change notification settings - Fork 53
/
.travis.yml
32 lines (31 loc) · 971 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Specifying `branches.only = ['master']` can cause tagged builds to
# not deploy. See travis-ci/travis-ci#2498 and travis-ci/travis-ci#1675.
# We can fix this by only build master and branches/tags that follow the
# format x.y.z. and also feature/issue-<num>, the latter is the style
# used by HubFlow
branches:
only:
- master
- develop
- /^\d+\.\d+(\.\d+)?(-\S*)?$/
- /^feature\/issue-\d+(-\S*)?$/
- "/^release\\/\\d+\\.\\d+(\\.\\d+)?$/"
- "/^release\\/(drs-)?\\d+\\.\\d+(\\.\\d+)?$/"
jobs:
include:
- stage: build_docs
language: node_js
node_js:
- "12"
before_script:
- npm install -g @redocly/openapi-cli && npm install -g redoc-cli
- npm install -g @ga4gh/[email protected]
script:
- gh-openapi-docs
deploy:
provider: pages
skip_cleanup: true
keep_history: true
github-token: $GITHUB_TOKEN
on:
all_branches: true