ci: generate playground from apidoc definitions

This commit is contained in:
sinkaroid
2023-04-18 13:03:16 +07:00
parent 17114928e3
commit 9c1a4b421e

26
.github/workflows/playground.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Playground
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Installing dependencies
run: npm install
- name: Generating docs
run: npm run build:apidoc
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
branch: gh-pages
folder: docs