File tree Expand file tree Collapse file tree 2 files changed +26
-19
lines changed
Expand file tree Collapse file tree 2 files changed +26
-19
lines changed Original file line number Diff line number Diff line change 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 : .
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments