Skip to content

Merge pull request #839 from University-of-Potsdam-MM/feature/837-inf… #93

Merge pull request #839 from University-of-Potsdam-MM/feature/837-inf…

Merge pull request #839 from University-of-Potsdam-MM/feature/837-inf… #93

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and deploys compodoc to github-pages
name: Node.js CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: git submodule init
- run: git submodule update
- run: npm ci
- run: npm run build --if-present
- run: npm run compodoc
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: documentation
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}