@@ -21,35 +21,48 @@ jobs:
2121
2222 - name : Copy umbrella content
2323 run : |
24- mkdir -p build/site
2524 cp -v index.html build/site/
2625 cp -v .nojekyll build/site/
2726 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
2936
3037 - name : Download AAS Specifications site
3138 run : |
3239 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/
3441 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"
3544
3645 - name : Download Submodel Templates site
3746 run : |
3847 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/
4049 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"
4152
4253 - name : List deployed files
4354 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"
4861
4962 - name : Deploy to GitHub Pages
5063 uses : JamesIves/github-pages-deploy-action@v4
5164 with :
5265 folder : build/site
5366 branch : gh-pages
5467 clean : true
55- force : true
68+ force : true
0 commit comments