Skip to content

index

index #235

Workflow file for this run

name: docs master
on:
push:
branches:
- master
env:
JDOC_APP_ID: "131e893c-eac4-4713-917b-a49fdd10c1c8"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: build jsdoc
run: |
cd doc/jsdoc/
npm install --no-save
npx documentation build ../../../cables/src/core/index.js -f html -o out --theme theme
- name: Deploy jsdocs to netlify
uses: netlify/actions/cli@master
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ env.JDOC_APP_ID }}
with:
args: deploy --dir=doc/jsdoc/out --prod
secrets: '["NETLIFY_AUTH_TOKEN", "NETLIFY_SITE_ID"]'