Skip to content

Commit 144451c

Browse files
committed
updated the workflows
1 parent 7422a30 commit 144451c

File tree

1 file changed

+7
-88
lines changed

1 file changed

+7
-88
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
name: Deploy Combined Docs
2-
3-
on:
4-
push:
5-
branches: [ main ]
6-
workflow_dispatch:
7-
8-
permissions:
9-
contents: write
1+
contents: write
102

113
jobs:
124
deploy:
@@ -19,88 +11,15 @@ jobs:
1911
- name: Create site directory and clear cache
2012
run: |
2113
mkdir -p build/site
22-
# Force clear any cached files
2314
rm -rf aas-specifications idta-submodel-templates
2415
25-
- name: Create updated index.html
16+
- name: Copy existing index.html
2617
run: |
27-
cat > build/site/index.html << 'HTMLEND'
28-
<!DOCTYPE html>
29-
<html>
30-
<head>
31-
<meta charset="utf-8">
32-
<title>Industrial Digital Twin Documentation</title>
33-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
34-
<!-- Add cache control headers -->
35-
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
36-
<meta http-equiv="Pragma" content="no-cache">
37-
<meta http-equiv="Expires" content="0">
38-
<style>
39-
body {
40-
font-family: Arial, sans-serif;
41-
line-height: 1.6;
42-
max-width: 800px;
43-
margin: 0 auto;
44-
padding: 20px;
45-
color: #333;
46-
}
47-
h1 {
48-
border-bottom: 2px solid #0366d6;
49-
padding-bottom: 10px;
50-
color: #0d2f4f;
51-
}
52-
ul {
53-
padding-left: 20px;
54-
list-style-type: disc;
55-
}
56-
li {
57-
margin-bottom: 15px;
58-
font-size: 18px;
59-
}
60-
a {
61-
color: #0366d6;
62-
text-decoration: none;
63-
font-weight: bold;
64-
}
65-
a:hover {
66-
text-decoration: underline;
67-
}
68-
.test-banner {
69-
background-color: #ffebee;
70-
color: #c62828;
71-
padding: 10px 15px;
72-
border-radius: 4px;
73-
margin: 20px 0;
74-
font-weight: bold;
75-
border-left: 5px solid #c62828;
76-
}
77-
.version-info {
78-
font-size: 12px;
79-
color: #666;
80-
margin-top: 40px;
81-
font-style: italic;
82-
}
83-
</style>
84-
</head>
85-
<body>
86-
<h1>Industrial Digital Twin Documentation</h1>
87-
88-
<div class="test-banner">
89-
THIS IS A TEST - UPDATED VERSION - DEPLOYED AT $(date)
90-
</div>
91-
92-
<ul>
93-
<li><a href="./aas-specifications/">AAS Specifications</a></li>
94-
<li><a href="./idta-submodel-templates/">Submodel Templates</a></li>
95-
</ul>
96-
97-
<div class="version-info">
98-
Last updated: $(date)
99-
</div>
100-
</body>
101-
</html>
102-
HTMLEND
103-
echo "Created new index.html:"
18+
cp index.html build/site/index.html
19+
sed -i 's|<h1>IDTA AAS Specification Documentation</h1>|<h1>Industrial Digital Twin Documentation</h1>|g' build/site/index.html
20+
sed -i 's|<h2 style="color:red;">THIS IS A TEST - SHOULD BE VISIBLE</h2>|<h2 style="color:red;">THIS IS A TEST - UPDATED VERSION - DEPLOYED AT '"$(date)"'</h2>|g' build/site/index.html
21+
sed -i 's|href="/aas-specifications/|href="./aas-specifications/|g' build/site/index.html
22+
sed -i 's|href="/idta-submodel-templates/|href="./idta-submodel-templates/|g' build/site/index.html
10423
cat build/site/index.html
10524
10625
- name: Copy other required files

0 commit comments

Comments
 (0)