@@ -21,35 +21,48 @@ jobs:
21
21
22
22
- name : Copy umbrella content
23
23
run : |
24
- mkdir -p build/site
25
24
cp -v index.html build/site/
26
25
cp -v .nojekyll build/site/
27
26
cp -v CNAME build/site/
28
- ls -l build/site/
27
+ ls -la build/site/
28
+
29
+ - name : Fix index.html URLs
30
+ 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:"
35
+ cat build/site/index.html
29
36
30
37
- name : Download AAS Specifications site
31
38
run : |
32
39
mkdir -p build/site/aas-specifications
33
- wget -q -r -nH --cut-dirs=1 --no-parent --reject="index.html*" https://admin-shell-io.github.io/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/
34
41
cp -r aas-specifications/* build/site/aas-specifications/ || true
42
+ echo "Contents of aas-specifications directory:"
43
+ ls -la aas-specifications/ || echo "No files found"
35
44
36
45
- name : Download Submodel Templates site
37
46
run : |
38
47
mkdir -p build/site/idta-submodel-templates
39
- wget -q -r -nH --cut-dirs=1 --no-parent --reject="index.html*" https://admin-shell-io.github.io/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/
40
49
cp -r idta-submodel-templates/* build/site/idta-submodel-templates/ || true
50
+ echo "Contents of idta-submodel-templates directory:"
51
+ ls -la idta-submodel-templates/ || echo "No files found"
41
52
42
53
- name : List deployed files
43
54
run : |
44
- echo "Contents of build/site:"
45
- ls -lR build/site/
46
- echo "Contents of build/site/index.html:"
47
- cat build/site/index.html
55
+ echo "Contents of build/site root:"
56
+ ls -la build/site/
57
+ echo "Contents of aas-specifications directory:"
58
+ ls -la build/site/aas-specifications/ || echo "Directory empty or not found"
59
+ echo "Contents of idta-submodel-templates directory:"
60
+ ls -la build/site/idta-submodel-templates/ || echo "Directory empty or not found"
48
61
49
62
- name : Deploy to GitHub Pages
50
63
uses : JamesIves/github-pages-deploy-action@v4
51
64
with :
52
65
folder : build/site
53
66
branch : gh-pages
54
67
clean : true
55
- force : true
68
+ force : true
0 commit comments