Skip to content

Commit 5135689

Browse files
Update deploy.yml
1 parent 9a3e1d1 commit 5135689

File tree

1 file changed

+16
-39
lines changed

1 file changed

+16
-39
lines changed

.github/workflows/deploy.yml

Lines changed: 16 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -14,56 +14,33 @@ jobs:
1414
with:
1515
fetch-depth: 0
1616

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
1919
uses: actions/checkout@v3
2020
with:
2121
repository: admin-shell-io/aas-specs-antora
22-
path: aas-specs-antora
22+
ref: gh-pages
23+
path: aas-specifications
2324

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
2627
uses: actions/checkout@v3
2728
with:
2829
repository: admin-shell-io/submodel-templates-antora
29-
path: submodel-templates-antora
30+
ref: gh-pages
31+
path: submodel-templates
3032

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
6235
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
6441
cp index.html build/site/index.html
6542
66-
# 8. Deploy the entire build/site folder to Pages
43+
# 5. Deploy the combined site to GitHub Pages
6744
- name: Deploy to GitHub Pages
6845
uses: peaceiris/actions-gh-pages@v3
6946
with:

0 commit comments

Comments
 (0)