Skip to content

Commit bf52062

Browse files
committed
fix: use gh-pages branch for GitHub Pages
1 parent 73cace3 commit bf52062

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

{{cookiecutter.project_slug}}/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,12 @@ doc-serve = "pdoc ./{{cookiecutter.package_name}} --host localhost --port 8080"
153153
doc-build = "pdoc ./{{cookiecutter.package_name}} -o docs/api --search"
154154
doc-publish = """\
155155
task doc-build && \
156-
git checkout docs 2>/dev/null || git checkout -b docs && \
157-
git rm -rf . && \
156+
git checkout gh-pages 2>/dev/null || git checkout -b gh-pages && \
157+
git rm -rf . 2>/dev/null || true && \
158158
cp -r docs/api/* . && \
159159
git add -A && \
160160
git commit -m "Publish API documentation" && \
161-
git push origin docs --force && \
161+
git push origin gh-pages --force && \
162162
git checkout main"""
163163
mut-report = """
164164
uv run cosmic-ray new-config mut.toml && \

0 commit comments

Comments
 (0)