1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-03 18:50:05 +00:00

chore: added github workflow for generating docs

This commit is contained in:
2022-10-07 16:05:55 +05:00
parent c498783d76
commit b07770eb7b
36 changed files with 45 additions and 4284 deletions

43
.github/workflows/generateDocs.yml vendored Normal file
View File

@@ -0,0 +1,43 @@
name: Generate docs and Push to docs Branch
on:
push:
branches:
- master
jobs:
generate_and_push_docs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [lts/fermium]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install Dependencies
run: npm ci
- name: Generate Docs
run: npm run typedoc
- name: Create CNAME file in docs
run: |
touch CNAME
echo adapter.sasjs.io >> CNAME
- name: Push generated docs to docs branch
uses: nicholasgriffintn/github-branch-deployment-action@0.0.1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
BRANCH: docs
FOLDER: docs
MESSAGE: 'Docs: ({sha}) {msg}'