@@ -14,56 +14,33 @@ jobs:
14
14
with :
15
15
fetch-depth : 0
16
16
17
- # 2. Checkout the AAS specs meta-repo
18
- - name : Checkout AAS Specs
17
+ # 2. Checkout pre-built site from AAS Specs (gh-pages branch)
18
+ - name : Checkout AAS Specs static site
19
19
uses : actions/checkout@v3
20
20
with :
21
21
repository : admin-shell-io/aas-specs-antora
22
- path : aas-specs-antora
22
+ ref : gh-pages
23
+ path : aas-specifications
23
24
24
- # 3. Checkout the Submodel Templates repo
25
- - name : Checkout Submodel Templates
25
+ # 3. Checkout pre-built site from Submodel Templates (gh-pages branch)
26
+ - name : Checkout Submodel Templates static site
26
27
uses : actions/checkout@v3
27
28
with :
28
29
repository : admin-shell-io/submodel-templates-antora
29
- path : submodel-templates-antora
30
+ ref : gh-pages
31
+ path : submodel-templates
30
32
31
- # 4. Set up Node.js & install Antora + extensions + loader + kroki
32
- - name : Setup Node.js
33
- uses : actions/setup-node@v3
34
- with :
35
- node-version : 18
36
- - name : Install Antora toolchain
37
- run : |
38
- npm install --no-audit --prefer-offline \
39
- @antora/cli \
40
- @antora/site-generator-default \
41
-
42
-
43
-
44
- asciidoctor-kroki
45
- - name : Ensure Antora CLI is executable
46
- run : chmod +x ./node_modules/.bin/antora
47
-
48
- # 5. Build AAS Specs site
49
- - name : Build AAS Specs
50
- working-directory : aas-specs-antora
51
- run : |
52
- npx antora antora-playbook.yml --to-dir=../build/site/aas-specs-antora
53
-
54
- # 6. Build Submodel Templates site
55
- - name : Build Submodel Templates
56
- working-directory : submodel-templates-antora
57
- run : |
58
- npx antora antora-playbook.yml --to-dir=../build/site/submodel-templates-antora
59
-
60
- # 7. Copy umbrella index.html into the combined site
61
- - name : Copy Dashboard
33
+ # 4. Copy both static sites into a single build directory
34
+ - name : Assemble combined site
62
35
run : |
63
- mkdir -p build/site
36
+ mkdir -p build/site/aas-specs-antora
37
+ cp -R aas-specs-antora/* build/site/aas-specs-antora/
38
+ mkdir -p build/site/submodel-templates-antora
39
+ cp -R submodel-templates-antora/* build/site/submodel-templates-antora/
40
+ # Copy umbrella dashboard
64
41
cp index.html build/site/index.html
65
42
66
- # 8 . Deploy the entire build/ site folder to Pages
43
+ # 5 . Deploy the combined site to GitHub Pages
67
44
- name : Deploy to GitHub Pages
68
45
uses : peaceiris/actions-gh-pages@v3
69
46
with :
0 commit comments