Skip to content

Merge pull request #125 from testomatio/upd-publish-job #18

Merge pull request #125 from testomatio/upd-publish-job

Merge pull request #125 from testomatio/upd-publish-job #18

Workflow file for this run

name: Build docs
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
name: Build Docs
steps:
# first checkout your code
- name: Checkout
uses: actions/checkout@v2
# then use redoc-cli-github-action to generate your HTML bundle
- name: Generate and rename Redoc documentation
run: |
npx redoc-cli bundle testomat-api-definition.yml
mv redoc-static.html index.html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3 # https://github.com/peaceiris/actions-gh-pages
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
force_orphan: true
exclude_assets: '.github,src,bin,test,LICENSE,README.md'