File tree 3 files changed +41
-62
lines changed
3 files changed +41
-62
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -9,20 +9,7 @@ concurrency:
9
9
10
10
jobs :
11
11
docs :
12
- runs-on : " ubuntu-latest"
13
- steps :
14
- - uses : " actions/checkout@v4"
15
- with :
16
- path : " pulp-docs"
17
- fetch-depth : 0
18
-
19
- - run : |
20
- echo "$PWD"
21
- ls
22
-
23
- - uses : " ./pulp-docs/.github/actions/pulp-docs-ci"
24
- with :
25
- repository_name : " pulp-docs"
12
+ uses : ./.github/workflows/pulp-docs-ci.yml
26
13
27
14
# tests:
28
15
# uses: "./.github/workflows/tests.yml"
Original file line number Diff line number Diff line change
1
+ name : ' Docs CI'
2
+ on :
3
+ workflow_call :
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+
10
+ # The caller repository and context is used
11
+ - name : Checkout CI repository
12
+ if : ${{ github.event.repository.name != 'pulp-docs' }}
13
+ uses : actions/checkout@v4
14
+ with :
15
+ path : ${{ github.event.repository.name }}
16
+
17
+ - name : Checkout pulp-docs repository
18
+ uses : actions/checkout@v4
19
+ with :
20
+ repository : " pulp/pulp-docs"
21
+ path : pulp-docs
22
+ ref : " rewrite-as-mkdocs-plugin"
23
+ fetch-depth : 0
24
+
25
+ - uses : actions/setup-python@v5
26
+ with :
27
+ python-version : " 3.12"
28
+
29
+ - name : " Install pulp-docs"
30
+ run : |
31
+ cd pulp-docs
32
+ pip install --upgrade pip
33
+ pip install -r doc_requirements.txt
34
+
35
+ - name : " Build Docs"
36
+ run : |
37
+ echo $PWD
38
+ cd pulp-docs
39
+ pulp-docs fetch --dest /tmp/pulp-docs-tmp
40
+ pulp-docs build --path pulp-docs@..:${{ github.event.repository.name }}@..:/tmp/pulp-docs-tmp
You can’t perform that action at this time.
0 commit comments