Skip to content

Commit e06daa6

Browse files
committed
Create CNAME if it doesn't exist
1 parent 3b34282 commit e06daa6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/bonsai-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
git clone https://${{ secrets.GH_APIKEY }}@github.com/IfcOpenShell/bonsaibim_org_docs
2424
git -C bonsaibim_org_docs checkout -B main
2525
# Save CNAME before clearing repo - needed for GitHub Pages custom domain
26-
cp bonsaibim_org_docs/CNAME /tmp/CNAME || true
26+
cp bonsaibim_org_docs/CNAME /tmp/CNAME || echo "docs.bonsaibim.org" > /tmp/CNAME
2727
rm -rf bonsaibim_org_docs/*
2828
cp -r _build/html/* bonsaibim_org_docs/
29-
cp /tmp/CNAME bonsaibim_org_docs/CNAME || true
29+
cp /tmp/CNAME bonsaibim_org_docs/CNAME
3030
touch bonsaibim_org_docs/.nojekyll
3131
git -C bonsaibim_org_docs add .
3232
git -C bonsaibim_org_docs commit -m "Build"

.github/workflows/ifcopenshell-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
git clone https://${{ secrets.GH_APIKEY }}@github.com/IfcOpenShell/ifcopenshell_org_docs
2525
git -C ifcopenshell_org_docs checkout -B main
2626
# Save CNAME before clearing repo - needed for GitHub Pages custom domain
27-
cp ifcopenshell_org_docs/CNAME /tmp/CNAME || true
27+
cp ifcopenshell_org_docs/CNAME /tmp/CNAME || echo "docs.ifcopenshell.org" > /tmp/CNAME
2828
rm -rf ifcopenshell_org_docs/*
2929
cp -r _build/html/* ifcopenshell_org_docs/
30-
cp /tmp/CNAME ifcopenshell_org_docs/CNAME || true
30+
cp /tmp/CNAME ifcopenshell_org_docs/CNAME
3131
touch ifcopenshell_org_docs/.nojekyll
3232
git -C ifcopenshell_org_docs add .
3333
git -C ifcopenshell_org_docs commit -m "Build"

0 commit comments

Comments
 (0)