@@ -16,37 +16,112 @@ jobs:
16
16
with :
17
17
fetch-depth : 0
18
18
19
- - name : Create site directory
20
- run : mkdir -p build/site
21
-
22
- - name : Copy umbrella content
19
+ - name : Create site directory and clear cache
23
20
run : |
24
- cp -v index.html build/site/
25
- cp -v .nojekyll build/site/
26
- cp -v CNAME build/site/
27
- ls -la build/site/
21
+ mkdir -p build/site
22
+ # Force clear any cached files
23
+ rm -rf aas-specifications idta-submodel-templates
28
24
29
- - name : Fix index.html URLs
25
+ - name : Create updated index.html
30
26
run : |
31
- # Update relative URLs to absolute ones
32
- sed -i 's|href="/aas-specifications/|href="./aas-specifications/|g' build/site/index.html
33
- sed -i 's|href="/idta-submodel-templates/|href="./idta-submodel-templates/|g' build/site/index.html
34
- echo "Modified index.html content:"
27
+ cat > build/site/index.html << 'EOF'
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
+ EOF
103
+ echo "Created new index.html:"
35
104
cat build/site/index.html
36
105
106
+ - name : Copy other required files
107
+ run : |
108
+ touch build/site/.nojekyll
109
+ echo "industrialdigitaltwin.io" > build/site/CNAME
110
+ ls -la build/site/
111
+
37
112
- name : Download AAS Specifications site
38
113
run : |
39
114
mkdir -p build/site/aas-specifications
40
- wget -q -r -nH --cut-dirs=1 --no-parent --reject="index.html*" -P aas-specifications/ https://admin-shell-io.github.io/aas-specifications/
41
- cp -r aas-specifications/* build/site/aas-specifications/ || true
115
+ wget -q --no-check-certificate - r -np - nH --cut-dirs=1 --reject="index.html*" -P aas-specifications/ https://admin-shell-io.github.io/aas-specifications/
116
+ cp -r aas-specifications/* build/site/aas-specifications/ || echo "No files copied for aas-specifications"
42
117
echo "Contents of aas-specifications directory:"
43
118
ls -la aas-specifications/ || echo "No files found"
44
119
45
120
- name : Download Submodel Templates site
46
121
run : |
47
122
mkdir -p build/site/idta-submodel-templates
48
- wget -q -r -nH --cut-dirs=1 --no-parent --reject="index.html*" -P idta-submodel-templates/ https://admin-shell-io.github.io/idta-submodel-templates/
49
- cp -r idta-submodel-templates/* build/site/idta-submodel-templates/ || true
123
+ wget -q --no-check-certificate - r -np - nH --cut-dirs=1 --reject="index.html*" -P idta-submodel-templates/ https://admin-shell-io.github.io/idta-submodel-templates/
124
+ cp -r idta-submodel-templates/* build/site/idta-submodel-templates/ || echo "No files copied for idta-submodel-templates"
50
125
echo "Contents of idta-submodel-templates directory:"
51
126
ls -la idta-submodel-templates/ || echo "No files found"
52
127
65
140
folder : build/site
66
141
branch : gh-pages
67
142
clean : true
143
+ clean-exclude : |
144
+ .nojekyll
145
+ CNAME
68
146
force : true
0 commit comments