@@ -681,11 +681,13 @@ def setup_github_pages(
681681 python -m pip install uv
682682 uv sync
683683 uv pip install { great_docs_install } """
684+ build_command = "uv run great-docs build"
684685 elif package_manager == "poetry" :
685686 install_commands = f"""\
686687 python -m pip install poetry
687688 poetry install
688689 poetry run pip install { great_docs_install } """
690+ build_command = "poetry run great-docs build"
689691 else :
690692 # pip: try to detect optional dependencies
691693 optional_deps = _detect_optional_dependencies (project_root )
@@ -701,6 +703,7 @@ def setup_github_pages(
701703 python -m pip install --upgrade pip
702704 python -m pip install -e .
703705 python -m pip install { great_docs_install } """
706+ build_command = "great-docs build"
704707
705708 # Create .github/workflows directory
706709 workflow_dir = project_root / ".github" / "workflows"
@@ -739,6 +742,7 @@ def setup_github_pages(
739742 workflow_content = workflow_content .replace ("{ python_version }" , python_version )
740743 workflow_content = workflow_content .replace ("{python_version}" , python_version )
741744 workflow_content = workflow_content .replace ("{install_commands}" , install_commands )
745+ workflow_content = workflow_content .replace ("{build_command}" , build_command )
742746
743747 # Write workflow file
744748 workflow_file .write_text (workflow_content )
0 commit comments