Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build OpenAPI docs
on:
- push
# - pull_request
jobs:
docs-build:
runs-on: ubuntu-latest
# env:
# TRAVIS_BRANCH: ${{ github.event.number }}
# a trick that builds docs for PRs (with PR number). Does not work for PRs from forks.
steps:
- name: Setup Node.js environment
uses: actions/setup-node@v2.5.1
with:
node-version: 14.x
# Comes with npm 6. For newer Node, encountered: https://github.com/npm/cli/issues/3359
- run: npm install -g @redocly/openapi-cli && npm install -g redoc-cli
- run: npm install -g gh-openapi-docs
- name: Check out repository code
uses: actions/checkout@v2
- run: gh-openapi-docs
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.2.2
with:
branch: gh-pages
folder: .
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.