maxGraph/.github/workflows/generate-website.yml

36 lines
919 B
YAML
Raw Normal View History

name: Generate website
on:
pull_request:
branches:
- development
paths:
- '.github/actions/build-setup/**/*'
- '.github/workflows/generate-website.yml'
2023-11-16 13:39:08 +00:00
- '.nvmrc'
- 'packages/core/**/*'
- 'packages/website/**/*'
- '!packages/website/README.md'
- 'package.json'
- 'package-lock.json'
- 'tsconfig.json'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Build Setup
uses: ./.github/actions/build-setup
- name: Build @maxgraph/core API docs
run: npm run docs:api -w packages/core
- name: Build website
run: npm run build -w packages/website
- name: Upload website artifact
uses: actions/upload-artifact@v4
with:
name: website-${{github.sha}}
path: |
packages/core/build/api/
packages/website/build/