Skip to content

Commit e02fd5c

Browse files
committed
Setup site branch with build infrastructure
- Deploy workflow now triggers on site branch pushes - Content fetched from: master (local), specs, modules repos - docs/ only contains assets and CNAME - All markdown content is fetched during build
1 parent f9a8966 commit e02fd5c

File tree

12 files changed

+33
-539
lines changed

12 files changed

+33
-539
lines changed

.github/workflows/deploy.yml

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Deploy MkDocs to GitHub Pages
33
on:
44
push:
55
branches:
6-
- main
7-
- master
6+
- site
87
workflow_dispatch:
98
repository_dispatch:
109
types: [specs-updated, modules-updated]
@@ -22,9 +21,15 @@ jobs:
2221
build:
2322
runs-on: ubuntu-latest
2423
steps:
25-
- name: Checkout docs
24+
- name: Checkout site branch
2625
uses: actions/checkout@v4
2726

27+
- name: Checkout master branch content
28+
uses: actions/checkout@v4
29+
with:
30+
ref: master
31+
path: master-content
32+
2833
- name: Checkout specs
2934
uses: actions/checkout@v4
3035
with:
@@ -39,6 +44,27 @@ jobs:
3944
ref: master
4045
path: modules-repo
4146

47+
- name: Copy local content from master
48+
run: |
49+
# Copy README.md as index page
50+
cp master-content/README.md docs/index.md
51+
echo "Copied README.md -> docs/index.md"
52+
53+
# Copy ecosystem folder
54+
rm -rf docs/ecosystem
55+
cp -r master-content/ecosystem docs/
56+
echo "Copied ecosystem/"
57+
58+
# Copy setup folder
59+
rm -rf docs/setup
60+
cp -r master-content/setup docs/
61+
echo "Copied setup/"
62+
63+
# Clean up
64+
rm -rf master-content
65+
echo "=== Copied local content ==="
66+
ls -la docs/
67+
4268
- name: Copy specs content
4369
run: |
4470
mkdir -p docs/specification

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ __pycache__/
1414
# Cloned repositories (fetched during build)
1515
specs-repo/
1616
modules-repo/
17+
master-content/
1718

1819
# Copied content from cloned repos (fetched during build)
1920
docs/modules/
2021
docs/specification/
22+
docs/ecosystem/
23+
docs/setup/
24+
docs/index.md
2125

2226
# IDE
2327
.vscode/

docs/ecosystem/chaining/index.md

Lines changed: 0 additions & 81 deletions
This file was deleted.

docs/ecosystem/chassis/index.md

Lines changed: 0 additions & 60 deletions
This file was deleted.

docs/ecosystem/compatibility/index.md

Lines changed: 0 additions & 86 deletions
This file was deleted.

docs/ecosystem/index.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

docs/ecosystem/io/index.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)