Skip to content

Commit 420314f

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

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

.github/workflows/pages.yml

Lines changed: 26 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,22 @@ 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: Build designer
57+
working-directory: designer
58+
run: npm run build
59+
3960
- name: Build site
4061
run: mkdocs build --strict
4162

63+
- name: Add designer to published site
64+
run: |
65+
mkdir -p site/design
66+
cp -R designer/build/. site/design/
67+
4268
- name: Upload Pages artifact
4369
uses: actions/upload-pages-artifact@v3
4470
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)