2023-11-27 17:53:52 +00:00
|
|
|
name: Generate website
|
2023-01-09 15:03:52 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- development
|
|
|
|
paths:
|
2023-12-04 03:13:32 +00:00
|
|
|
- '.github/actions/build-setup/**/*'
|
2023-11-27 17:53:52 +00:00
|
|
|
- '.github/workflows/generate-website.yml'
|
2023-11-16 13:39:08 +00:00
|
|
|
- '.nvmrc'
|
2023-12-03 23:57:50 +00:00
|
|
|
- 'packages/core/**/*'
|
|
|
|
- 'packages/website/**/*'
|
|
|
|
- '!packages/website/README.md'
|
2023-01-09 15:03:52 +00:00
|
|
|
- 'package.json'
|
2023-12-04 03:13:32 +00:00
|
|
|
- 'package-lock.json'
|
|
|
|
- 'tsconfig.json'
|
2023-01-09 15:03:52 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
2023-09-11 06:58:05 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-12-04 02:25:41 +00:00
|
|
|
- name: Build Setup
|
|
|
|
uses: ./.github/actions/build-setup
|
2023-01-09 15:03:52 +00:00
|
|
|
- name: Build @maxgraph/core API docs
|
2023-12-04 02:25:41 +00:00
|
|
|
run: npm run docs:api -w packages/core
|
2023-11-27 17:53:52 +00:00
|
|
|
- name: Build website
|
2023-12-04 02:25:41 +00:00
|
|
|
run: npm run build -w packages/website
|
2023-11-27 17:53:52 +00:00
|
|
|
- name: Upload website artifact
|
2023-12-18 14:54:31 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2023-11-27 17:53:52 +00:00
|
|
|
with:
|
|
|
|
name: website-${{github.sha}}
|
|
|
|
path: |
|
|
|
|
packages/core/build/api/
|
|
|
|
packages/website/build/
|