File tree 1 file changed +11
-12
lines changed 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -22,33 +22,32 @@ jobs:
22
22
with :
23
23
fetch-depth : 1
24
24
path : " pulp_python"
25
- - uses : " actions/setup-python@v5 "
25
+ - uses : " actions/checkout@v4 "
26
26
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 "
32
32
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"
37
34
- name : " Install python dependencies"
38
35
run : |
39
36
echo ::group::PYDEPS
40
- pip install -r doc_requirements.txt
37
+ pip install ../pulp-docs towncrier
41
38
echo ::endgroup::
42
39
- name : " Build changelog"
43
40
run : |
44
41
towncrier build --yes --version 4.0.0.ci
45
42
- name : " Build docs"
43
+ working-directory : " pulp-docs"
46
44
run : |
45
+ pulp-docs fetch --dest ..
47
46
pulp-docs build
48
47
49
48
no-test :
50
49
if : " !endsWith(github.base_ref, 'main')"
51
50
runs-on : " ubuntu-latest"
52
51
steps :
53
52
- run : |
54
- echo "Skip docs testing on non-main branches."
53
+ echo "Skip docs testing on non-default branches."
You can’t perform that action at this time.
0 commit comments