Merge pull request #129 from sibyl-dev/dev #6
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
# Extracted from https://github.com/jizt-it/jizt-api-spec/blob/main/.github/workflows/build-docs.yml | |
name: Build docs | |
on: | |
push: | |
branches: | |
- stable | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build docs | |
run: npx @redocly/cli build-docs docs/apispec.json --output index.html | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 # https://github.com/peaceiris/actions-gh-pages | |
with: | |
deploy_key: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: . | |
force_orphan: true | |
exclude_assets: '.github,openapi,.redocly.yaml,LICENSE,README.md,make.sh' |