Skip to content

Commit b2c253c

Browse files
committed
Recreate CNAME after clearing docs repos
Previously workflows were removing all repo contents before copying new docs, so CNAME must be recreated each time to ensure github pages domain mapping works.
1 parent 2ba18bf commit b2c253c

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/bonsai-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
git config --global user.email 'IfcOpenBot@users.noreply.github.com'
2121
git clone https://${{ secrets.GH_APIKEY }}@github.com/IfcOpenShell/bonsaibim_org_docs
2222
rm -rf bonsaibim_org_docs/*
23+
printf "docs.bonsaibim.org\n" > bonsaibim_org_docs/CNAME
2324
cp -r _build/html/* bonsaibim_org_docs/
2425
touch bonsaibim_org_docs/.nojekyll
2526
git -C bonsaibim_org_docs add .

.github/workflows/ifcopenshell-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
git config --global user.email 'IfcOpenBot@users.noreply.github.com'
2222
git clone https://${{ secrets.GH_APIKEY }}@github.com/IfcOpenShell/ifcopenshell_org_docs
2323
rm -rf ifcopenshell_org_docs/*
24+
printf "docs.ifcopenshell.org\n" > ifcopenshell_org_docs/CNAME
2425
cp -r _build/html/* ifcopenshell_org_docs/
2526
touch ifcopenshell_org_docs/.nojekyll
2627
git -C ifcopenshell_org_docs add .

0 commit comments

Comments
 (0)