Skip to content

Commit 9791867

Browse files
committed
updated deploy.yml
1 parent a1c5d42 commit 9791867

File tree

3 files changed

+118
-19
lines changed

3 files changed

+118
-19
lines changed

.github/workflows/deploy.yml

Lines changed: 46 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build & Deploy Docs Site
1+
name: Build & Deploy Combined Docs
22

33
on:
44
push:
@@ -9,22 +9,57 @@ jobs:
99
build-and-deploy:
1010
runs-on: ubuntu-latest
1111
steps:
12+
# 1. Checkout umbrella repo
1213
- uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0 # in case you need history for edits
16+
17+
# 2. Checkout the AAS specs meta-repo
18+
- name: Checkout AAS Specs
19+
uses: actions/checkout@v3
20+
with:
21+
repository: admin-shell-io/aas-specs-antora
22+
path: aas-specs-antora
23+
24+
# 3. Checkout the Submodel Templates repo
25+
- name: Checkout Submodel Templates
26+
uses: actions/checkout@v3
27+
with:
28+
repository: admin-shell-io/submodel-templates-antora
29+
path: submodel-templates
1330

14-
# 1. Initialize npm & install local dev-deps
15-
- name: Set up Node.js and install Antora
31+
# 4. Set up Node.js & install Antora + extensions + loader + kroki
32+
- name: Setup Node.js
1633
uses: actions/setup-node@v3
1734
with:
18-
node-version: '18' # or whatever LTS you prefer
19-
- run: |
20-
npm ci # installs @antora/cli & @antora/site-generator-default
21-
# 2. Build the site
22-
- name: Build with Antora
23-
run: npx antora antora-playbook.yml --to-dir=build/site
24-
# 3. Deploy
35+
node-version: 18
36+
- name: Install Antora toolchain
37+
run: npm ci
38+
39+
# 5. Build AAS Specs site
40+
- name: Build AAS Specs
41+
working-directory: aas-specs-antora
42+
run: |
43+
# uses the playbook *in* that repo
44+
npx antora antora-playbook.yml --to-dir=../build/site/aas-specs-antora
45+
46+
# 6. Build Submodel Templates site
47+
- name: Build Submodel Templates
48+
working-directory: submodel-templates
49+
run: |
50+
# assumes there's a playbook at the root of submodel-templates
51+
npx antora antora-playbook.yml --to-dir=../build/site/submodel-templates
52+
53+
# 7. Copy umbrella index.html into the combined site
54+
- name: Copy Dashboard
55+
run: |
56+
mkdir -p build/site
57+
cp index.html build/site/index.html
58+
59+
# 8. Deploy the entire build/site folder to Pages
2560
- name: Deploy to GitHub Pages
2661
uses: peaceiris/actions-gh-pages@v3
2762
with:
2863
github_token: ${{ secrets.GITHUB_TOKEN }}
2964
publish_dir: build/site
30-
# or omit to default to gh-pages
65+
publish_branch: gh-pages

package-lock.json

Lines changed: 63 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
{
2-
"devDependencies": {
3-
"@antora/cli": "^3.1.10",
4-
"@antora/lunr-extension": "^1.0.0-alpha.10",
5-
"@antora/pdf-extension": "^1.0.0-alpha.12",
6-
"@antora/site-generator-default": "^3.1.10"
7-
},
8-
"name": "admin-shell-io.github.io",
2+
"name": "industrialdigitaltwin-umbrella",
93
"version": "1.0.0",
104
"description": "",
115
"main": "index.js",
6+
"devDependencies": {
7+
"@antora/cli": "^3.0.0",
8+
"@antora/site-generator-default": "^3.0.0",
9+
"@antora/lunr-extension": "^1.0.0",
10+
"@antora/pdf-extension": "^1.0.0",
11+
"@antora/asciidoc-loader": "^1.0.0",
12+
"asciidoctor-kroki": "^1.0.0"
13+
},
1214
"dependencies": {
1315
"abort-controller": "^3.0.0",
1416
"argparse": "^2.0.1",

0 commit comments

Comments
 (0)