From 9c1a4b421ebbdb5ae2df00fcf6ef899703a71b44 Mon Sep 17 00:00:00 2001 From: sinkaroid Date: Tue, 18 Apr 2023 13:03:16 +0700 Subject: [PATCH] ci: generate playground from apidoc definitions --- .github/workflows/playground.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/playground.yml diff --git a/.github/workflows/playground.yml b/.github/workflows/playground.yml new file mode 100644 index 0000000..2892a4e --- /dev/null +++ b/.github/workflows/playground.yml @@ -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 \ No newline at end of file