Skip to content

Merge pull request #17 from ModularSoftAU/docs-zander #79

Merge pull request #17 from ModularSoftAU/docs-zander

Merge pull request #17 from ModularSoftAU/docs-zander #79

# This workflow will generate the documentation for zander-docs dynamically
name: Generate documentation
on:
push:
branches: [main]
pull_request:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Generate API documentation
run: |
cd vendor
python APIGenerator/src/gen.py --build
- name: npm install and build
run: |
npm ci
npm run build --if-present
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: build # The folder the action should deploy.