Skip to content

Commit b4d3bac

Browse files
committed
Update CI files
1 parent b090afa commit b4d3bac

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/docs.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,33 +22,32 @@ jobs:
2222
with:
2323
fetch-depth: 1
2424
path: "pulp_python"
25-
- uses: "actions/setup-python@v5"
25+
- uses: "actions/checkout@v4"
2626
with:
27-
python-version: "3.11"
28-
- name: "Setup cache key"
29-
run: |
30-
git ls-remote https://github.com/pulp/pulp-docs main | tee pulp-docs-main-sha
31-
- uses: "actions/cache@v4"
27+
fetch-depth: 0
28+
repository: "pulp/pulp-docs"
29+
path: "pulp-docs"
30+
ref: "rewrite-as-mkdocs-plugin"
31+
- uses: "actions/setup-python@v5"
3232
with:
33-
path: "~/.cache/pip"
34-
key: ${{ runner.os }}-pip-${{ hashFiles('pulp-docs-main-sha') }}
35-
restore-keys: |
36-
${{ runner.os }}-pip-
33+
python-version: "3.12"
3734
- name: "Install python dependencies"
3835
run: |
3936
echo ::group::PYDEPS
40-
pip install -r doc_requirements.txt
37+
pip install ../pulp-docs towncrier
4138
echo ::endgroup::
4239
- name: "Build changelog"
4340
run: |
4441
towncrier build --yes --version 4.0.0.ci
4542
- name: "Build docs"
43+
working-directory: "pulp-docs"
4644
run: |
45+
pulp-docs fetch --dest ..
4746
pulp-docs build
4847
4948
no-test:
5049
if: "!endsWith(github.base_ref, 'main')"
5150
runs-on: "ubuntu-latest"
5251
steps:
5352
- run: |
54-
echo "Skip docs testing on non-main branches."
53+
echo "Skip docs testing on non-default branches."

0 commit comments

Comments
 (0)