Skip to content

Commit a5516e5

Browse files
committed
Publish the designer, too
1 parent 9c5553f commit a5516e5

2 files changed

Lines changed: 35 additions & 2 deletions

File tree

.github/workflows/pages.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,24 @@ jobs:
2222
- name: Check out repository
2323
uses: actions/checkout@v4
2424

25+
- name: Check out designer repository
26+
uses: actions/checkout@v4
27+
with:
28+
repository: freenit-framework/designer
29+
path: designer
30+
2531
- name: Set up Python
2632
uses: actions/setup-python@v5
2733
with:
2834
python-version: "3.12"
2935

36+
- name: Set up Node.js
37+
uses: actions/setup-node@v4
38+
with:
39+
node-version: "22"
40+
cache: npm
41+
cache-dependency-path: designer/package-lock.json
42+
3043
- name: Install documentation dependencies
3144
run: |
3245
python -m pip install --upgrade pip
@@ -36,9 +49,27 @@ jobs:
3649
mkdocs-awesome-pages-plugin \
3750
pymdown-extensions
3851
52+
- name: Install designer dependencies
53+
working-directory: designer
54+
run: npm ci
55+
56+
- name: Generate designer components
57+
working-directory: designer
58+
run: OFFLINE=yes ./bin/components.sh
59+
60+
- name: Build designer
61+
working-directory: designer
62+
run: npm run build
63+
3964
- name: Build site
4065
run: mkdocs build --strict
4166

67+
- name: Add designer to published site
68+
run: |
69+
mkdir -p site/design
70+
cp -R designer/build/. site/design/
71+
touch site/.nojekyll
72+
4273
- name: Upload Pages artifact
4374
uses: actions/upload-pages-artifact@v3
4475
with:

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ The MkDocs deployment guide explains that user/organization Pages deployments wi
2525
Instead, publishing is handled by GitHub Actions in [`.github/workflows/pages.yml`](/home/meka/repos/freenit-framework.github.io/.github/workflows/pages.yml). On each push to `master`, the workflow:
2626

2727
1. installs MkDocs and the required plugins,
28-
2. builds the site with `mkdocs build --strict`,
29-
3. deploys the generated `site/` output to GitHub Pages.
28+
2. checks out and builds the `freenit-framework/designer` repository,
29+
3. builds the site with `mkdocs build --strict`,
30+
4. copies the designer static build into `site/design/`,
31+
5. deploys the generated `site/` output to GitHub Pages.
3032

3133
## One-time GitHub configuration
3234

0 commit comments

Comments
 (0)