Skip to content

Commit 45409e7

Browse files
authored
Merge pull request #22 from nullhack/fix/doc-publish-build
fix: doc-publish task now runs doc-build first
2 parents b4b64ec + 02ad586 commit 45409e7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

{{cookiecutter.project_slug}}/pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,14 @@ lint = "task ruff-check && task ruff-format"
152152
doc-serve = "pdoc ./{{cookiecutter.package_name}} --host localhost --port 8080"
153153
doc-build = "pdoc ./{{cookiecutter.package_name}} -o docs/api --search"
154154
doc-publish = """\
155-
git checkout gh-pages || git checkout -b gh-pages && \
155+
task doc-build && \
156+
git checkout gh-pages 2>/dev/null || git checkout -b gh-pages && \
156157
git rm -rf . && \
157158
cp -r docs/api/* . && \
158159
git add -A && \
159160
git commit -m "Publish API documentation" && \
160161
git push origin gh-pages --force && \
161-
git checkout -"""
162+
git checkout main"""
162163
mut-report = """
163164
uv run cosmic-ray new-config mut.toml && \
164165
uv run cosmic-ray init mut.toml mut.sqlite && \

0 commit comments

Comments
 (0)