File tree Expand file tree Collapse file tree 12 files changed +33
-539
lines changed
Expand file tree Collapse file tree 12 files changed +33
-539
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ name: Deploy MkDocs to GitHub Pages
33on :
44 push :
55 branches :
6- - main
7- - master
6+ - site
87 workflow_dispatch :
98 repository_dispatch :
109 types : [specs-updated, modules-updated]
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 :
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
Original file line number Diff line number Diff line change @@ -14,10 +14,14 @@ __pycache__/
1414# Cloned repositories (fetched during build)
1515specs-repo /
1616modules-repo /
17+ master-content /
1718
1819# Copied content from cloned repos (fetched during build)
1920docs /modules /
2021docs /specification /
22+ docs /ecosystem /
23+ docs /setup /
24+ docs /index.md
2125
2226# IDE
2327.vscode /
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments