Skip to content

Build and Deploy

Build and Deploy #144

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
schedule:
- cron: '0 0 * * 1'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v5
- name: Use Node.js
uses: actions/setup-node@v5
with:
node-version: current
- name: Install and Build plugin 🔧
run: |
npm install
npm audit --audit-level=low
npm outdated typedoc
npm run build
npm pack
working-directory: ./plugin
- name: Install and Build demo 🔧
run: |
npm install
npm install ../plugin/typedoc-plugin-include-example-3.0.2.tgz
npm audit --audit-level=low
npm run build
cp -r ../plugin/reports ./docs/reports
working-directory: ./demo
- uses: actions/upload-artifact@v4
with:
name: docs
path: demo/docs
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
needs: build
steps:
- uses: actions/checkout@v5
- uses: actions/download-artifact@v4
with:
name: docs
path: docs
- uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs