New test #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: generate API docs | |
on: | |
push: | |
branches: | |
- hardening/doc | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: "recursive" | |
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | |
- name: Use Node.js 14.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
- name: Install node package | |
run: npm install @redocly/cli -g | |
- name: Generate API Doc | |
run: redocly build-docs ./api/api.yaml | |
- name: Move the file to the final folder | |
run: mv redoc-static.html ./docs/apidoc.html |