Skip to content

Commit 65a6410

Browse files
[Docs] - Build website on every PR (Resolves #2661) (#2667)
1 parent ea935ed commit 65a6410

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/pr_validation.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,3 +308,25 @@ jobs:
308308

309309
# Run all tests
310310
- run: dart test
311+
312+
build_docs_websiste:
313+
# Run this job only when the PR is targeting the main branch
314+
if: ${{ github.base_ref == 'main' }}
315+
runs-on: ubuntu-latest
316+
317+
defaults:
318+
run:
319+
working-directory: ./doc/website
320+
321+
steps:
322+
# Checkout the PR branch
323+
- uses: actions/checkout@v3
324+
325+
# Setup Dart environment
326+
- uses: dart-lang/setup-dart@v1
327+
328+
# Download all the packages that the app uses
329+
- run: dart pub get
330+
331+
# Build the static site
332+
- run: dart run bin/super_editor_docs.dart

0 commit comments

Comments
 (0)