Skip to content
Merged
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
23 changes: 11 additions & 12 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,32 @@ jobs:
with:
fetch-depth: 1
path: "pulp_npm"
- uses: "actions/setup-python@v5"
- uses: "actions/checkout@v4"
with:
python-version: "3.11"
- name: "Setup cache key"
run: |
git ls-remote https://github.com/pulp/pulp-docs main | tee pulp-docs-main-sha
- uses: "actions/cache@v4"
fetch-depth: 0
repository: "pulp/pulp-docs"
path: "pulp-docs"
ref: "rewrite-as-mkdocs-plugin"
- uses: "actions/setup-python@v5"
with:
path: "~/.cache/pip"
key: ${{ runner.os }}-pip-${{ hashFiles('pulp-docs-main-sha') }}
restore-keys: |
${{ runner.os }}-pip-
python-version: "3.12"
- name: "Install python dependencies"
run: |
echo ::group::PYDEPS
pip install -r doc_requirements.txt
pip install ../pulp-docs 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

no-test:
if: "!endsWith(github.base_ref, 'main')"
runs-on: "ubuntu-latest"
steps:
- run: |
echo "Skip docs testing on non-main branches."
echo "Skip docs testing on non-default branches."