Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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')"
Expand Down
2 changes: 1 addition & 1 deletion doc_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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