Skip to content

Commit 58d4ee1

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

2 files changed

Lines changed: 69 additions & 2 deletions

File tree

.github/workflows/pages.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,45 @@ 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+
37+
- name: Download Freenit service repositories
38+
working-directory: freenit
39+
run: ./bin/download_repos.sh
40+
41+
- name: Force designer branch
42+
working-directory: freenit/services/designer
43+
run: |
44+
git checkout main
45+
git pull --ff-only origin main
46+
47+
- name: Verify designer checkout
48+
run: |
49+
git -C freenit/services/designer branch --show-current
50+
git -C freenit/services/designer log --oneline -n 3
51+
find freenit/services -maxdepth 2 -type d | sort || true
52+
test -d freenit/services/designer
53+
2554
- name: Set up Python
2655
uses: actions/setup-python@v5
2756
with:
2857
python-version: "3.12"
2958

59+
- name: Set up Node.js
60+
uses: actions/setup-node@v4
61+
with:
62+
node-version: "24"
63+
3064
- name: Install documentation dependencies
3165
run: |
3266
python -m pip install --upgrade pip
@@ -36,9 +70,38 @@ jobs:
3670
mkdocs-awesome-pages-plugin \
3771
pymdown-extensions
3872
73+
- name: Install designer dependencies
74+
working-directory: freenit/services/designer
75+
run: npm ci
76+
77+
- name: Generate designer components
78+
working-directory: freenit/services/designer
79+
run: OFFLINE=yes ./bin/components.sh
80+
81+
- name: Build designer
82+
working-directory: freenit/services/designer
83+
run: npm run build
84+
3985
- name: Build site
4086
run: mkdocs build --strict
4187

88+
- name: Add designer to published site
89+
run: |
90+
echo "designer/build contents:"
91+
find freenit/services/designer/build -maxdepth 2 -type f | sort || true
92+
93+
mkdir -p site/design
94+
cp -R freenit/services/designer/build/. site/design/
95+
touch site/.nojekyll
96+
97+
echo "site/design contents:"
98+
find site/design -maxdepth 2 -type f | sort || true
99+
100+
- name: Verify published designer files
101+
run: |
102+
find site/design -maxdepth 2 -type f | sort
103+
test -f site/design/index.html
104+
42105
- name: Upload Pages artifact
43106
uses: actions/upload-pages-artifact@v3
44107
with:

README.md

Lines changed: 6 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

@@ -41,3 +43,5 @@ The site now includes:
4143
3. Open Graph and Twitter card metadata,
4244
4. structured data for the site,
4345
5. a `robots.txt` file for crawling guidance.
46+
47+
Something

0 commit comments

Comments
 (0)