Skip to content

Commit b07e60c

Browse files
Release v0.1.0
1 parent ba0b430 commit b07e60c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ jobs:
1818
- name: Push to docs repo
1919
run: |
2020
git clone https://x-access-token:${{ secrets.AutoChecklist_DOCS_PAT }}@github.com/autochecklist/autochecklist.github.io.git docs-repo
21+
# Clean old root-level docs (keep .git, docs/, and root index.html redirect)
22+
cd docs-repo
23+
find . -maxdepth 1 -not -name '.git' -not -name '.' -not -name 'docs' -not -name 'CNAME' -exec rm -rf {} +
24+
# Add redirect from root to /docs/
25+
cat > index.html << 'REDIRECT'
26+
<!DOCTYPE html>
27+
<html><head><meta http-equiv="refresh" content="0; url=docs/"></head></html>
28+
REDIRECT
29+
cd ..
30+
# Deploy docs to /docs/ subdirectory
2131
mkdir -p docs-repo/docs
2232
rm -rf docs-repo/docs/*
2333
cp -r site/* docs-repo/docs/

0 commit comments

Comments
 (0)