Skip to content

Commit b65a97d

Browse files
authored
Merge pull request #117 from posit-dev/fix-update-ci-workflow-uv
fix: properly configure GitHub Actions build command
2 parents 9ef3932 + b66719f commit b65a97d

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

great_docs/assets/github-workflow-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: quarto-dev/quarto-actions/setup@v2
2828

2929
- name: Build docs
30-
run: great-docs build
30+
run: {build_command}
3131

3232
- name: Save docs artifact
3333
uses: actions/upload-artifact@v7

great_docs/cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)