diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 6144149d..44f17e93 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -6,12 +6,12 @@ # For more info visit https://github.com/pulp/plugin_template --- -name: "Docs" +name: "Docs CI" on: workflow_call: jobs: - test: + changelog: if: "endsWith(github.base_ref, 'main')" runs-on: "ubuntu-latest" defaults: @@ -22,28 +22,22 @@ jobs: with: fetch-depth: 1 path: "pulp_python" - - uses: "actions/checkout@v4" - with: - fetch-depth: 0 - repository: "pulp/pulp-docs" - path: "pulp-docs" - ref: "rewrite-as-mkdocs-plugin" - uses: "actions/setup-python@v5" with: python-version: "3.12" - name: "Install python dependencies" run: | echo ::group::PYDEPS - pip install ../pulp-docs towncrier + pip install towncrier echo ::endgroup:: - name: "Build changelog" run: | towncrier build --yes --version 4.0.0.ci - - name: "Build docs" - working-directory: "pulp-docs" - run: | - pulp-docs fetch --dest .. - pulp-docs build + docs: + if: "endsWith(github.base_ref, 'main')" + uses: 'pulp/pulp-docs/.github/workflows/docs-ci.yml@rewrite-as-mkdocs-plugin' + with: + pulpdocs_ref: 'rewrite-as-mkdocs-plugin' no-test: if: "!endsWith(github.base_ref, 'main')" diff --git a/doc_requirements.txt b/doc_requirements.txt index 6456b7d8..6daacdbe 100644 --- a/doc_requirements.txt +++ b/doc_requirements.txt @@ -5,4 +5,4 @@ # # For more info visit https://github.com/pulp/plugin_template towncrier -pulp-docs @ git+https://github.com/pulp/pulp-docs@main +pulp-docs @ git+https://github.com/pulp/pulp-docs@rewrite-as-mkdocs-plugin