Skip to content

Commit 864a61b

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

2 files changed

Lines changed: 50 additions & 2 deletions

File tree

.github/workflows/pages.yml

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

25+
- name: Check out Freenit source repository
26+
uses: actions/checkout@v4
27+
with:
28+
repository: freenit-framework/devops
29+
path: freenit
30+
31+
- name: Debug Freenit checkout
32+
run: |
33+
pwd
34+
find . -maxdepth 3 -type d | sort
35+
find freenit -maxdepth 3 -type d | sort || true
36+
2537
- name: Set up Python
2638
uses: actions/setup-python@v5
2739
with:
2840
python-version: "3.12"
2941

42+
- name: Set up Node.js
43+
uses: actions/setup-node@v4
44+
with:
45+
node-version: "22"
46+
3047
- name: Install documentation dependencies
3148
run: |
3249
python -m pip install --upgrade pip
@@ -36,9 +53,38 @@ jobs:
3653
mkdocs-awesome-pages-plugin \
3754
pymdown-extensions
3855
56+
- name: Install designer dependencies
57+
working-directory: freenit/services/designer
58+
run: npm ci
59+
60+
- name: Generate designer components
61+
working-directory: freenit/services/designer
62+
run: OFFLINE=yes ./bin/components.sh
63+
64+
- name: Build designer
65+
working-directory: freenit/services/designer
66+
run: npm run build
67+
3968
- name: Build site
4069
run: mkdocs build --strict
4170

71+
- name: Add designer to published site
72+
run: |
73+
echo "designer/build contents:"
74+
find freenit/services/designer/build -maxdepth 2 -type f | sort || true
75+
76+
mkdir -p site/design
77+
cp -R freenit/services/designer/build/. site/design/
78+
touch site/.nojekyll
79+
80+
echo "site/design contents:"
81+
find site/design -maxdepth 2 -type f | sort || true
82+
83+
- name: Verify published designer files
84+
run: |
85+
find site/design -maxdepth 2 -type f | sort
86+
test -f site/design/index.html
87+
4288
- name: Upload Pages artifact
4389
uses: actions/upload-pages-artifact@v3
4490
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)