Skip to content

Instantly share code, notes, and snippets.

@kkrieger85
Forked from aronbudinszky/generate-docs-gitlab.yml
Created September 1, 2020 14:05
Show Gist options
  • Save kkrieger85/740ab535e6176f3944536762e9ea1665 to your computer and use it in GitHub Desktop.
Save kkrieger85/740ab535e6176f3944536762e9ea1665 to your computer and use it in GitHub Desktop.
Generate docs from open api spec in Gitlab using a shared runner.
image: node:latest
pages:
stage: deploy
script:
- npm install -g redoc-cli
- redoc-cli bundle -o public/index.html documentation/openapi.yaml
artifacts:
paths:
- public
only:
- master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment