Skip to content

Commit 53627cb

Browse files
authored
Merge pull request #172 from ga4gh/gh-actions
Switch to Github action
2 parents cafac9c + aee0e32 commit 53627cb

File tree

2 files changed

+26
-19
lines changed

2 files changed

+26
-19
lines changed

.github/workflows/build-docs.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build OpenAPI docs
2+
on:
3+
- push
4+
# - pull_request
5+
jobs:
6+
docs-build:
7+
runs-on: ubuntu-latest
8+
# env:
9+
# TRAVIS_BRANCH: ${{ github.event.number }}
10+
# a trick that builds docs for PRs (with PR number). Does not work for PRs from forks.
11+
steps:
12+
- name: Setup Node.js environment
13+
uses: actions/setup-node@v2.5.1
14+
with:
15+
node-version: 14.x
16+
# Comes with npm 6. For newer Node, encountered: https://github.com/npm/cli/issues/3359
17+
- run: npm install -g @redocly/openapi-cli && npm install -g redoc-cli
18+
- run: npm install -g gh-openapi-docs
19+
- name: Check out repository code
20+
uses: actions/checkout@v2
21+
- run: gh-openapi-docs
22+
- name: Deploy 🚀
23+
uses: JamesIves/github-pages-deploy-action@v4.2.2
24+
with:
25+
branch: gh-pages
26+
folder: .

.travis.yml

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

0 commit comments

Comments
 (0)