|
9 | 9 | COLLECTION_NAME: panos |
10 | 10 |
|
11 | 11 | jobs: |
12 | | - pyversion: |
13 | | - name: Discover minimum Python version |
14 | | - uses: ./.github/workflows/_discover_python_ver.yml |
15 | | - |
16 | 12 | docs: |
17 | 13 | name: Build Documentation |
18 | 14 | runs-on: ubuntu-latest |
19 | | - defaults: |
20 | | - run: |
21 | | - working-directory: ./ansible_collections/${{ env.NAMESPACE }}/${{ env.COLLECTION_NAME }} |
22 | 15 |
|
23 | 16 | steps: |
24 | | - # Just a note here: The Ansible stuff is apparently doing realpath |
25 | | - # checks, so trying to simlink stuff and then run Ansible commands |
26 | | - # such as ansible-test in the symlink directory fails. Thus we need |
27 | | - # to have the real path contain ansible_collections/paloaltonetworks/panos. |
28 | 17 | - name: Checkout |
29 | 18 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 |
30 | | - with: |
31 | | - path: ./ansible_collections/${{ env.NAMESPACE }}/${{ env.COLLECTION_NAME }} |
32 | 19 |
|
33 | 20 | - name: discover Python version |
34 | 21 | id: pyversion |
35 | 22 | uses: ./.github/actions/discover_python_version |
36 | | - with: |
37 | | - working-directory: ./ansible_collections/${{ env.NAMESPACE }}/${{ env.COLLECTION_NAME }} |
38 | 23 |
|
39 | 24 | - name: Setup Python |
40 | 25 | uses: actions/setup-python@b64ffcaf5b410884ad320a9cfac8866006a109aa # v4 |
|
49 | 34 | - name: Add ansible-core |
50 | 35 | run: poetry add ansible-core^2.16 |
51 | 36 |
|
52 | | - - name: Add antsibull-docs |
53 | | - run: poetry add antsibull-docs |
54 | | - |
55 | 37 | - name: Install dependencies |
56 | 38 | run: poetry install |
57 | 39 |
|
|
69 | 51 | rm -rf docs/html/.doctrees |
70 | 52 | shell: bash |
71 | 53 |
|
72 | | - # This is here for right now because the action to deploy seems to assume |
73 | | - # (and not have a configuration option to) mirror the actions/checkout@v4 |
74 | | - # the with.path spec. |
75 | | - - name: Move the repo to where the deploy action is looking for it |
76 | | - run: | |
77 | | - cd ../../../.. |
78 | | - mv pan-os-ansible the_repo |
79 | | - mv the_repo/ansible_collections/${{ env.NAMESPACE }}/${{ env.COLLECTION_NAME }} pan-os-ansible |
80 | | - mkdir -p pan-os-ansible/ansible_collections/${{ env.NAMESPACE }}/${{ env.COLLECTION_NAME }} |
81 | | -
|
82 | 54 | - name: Deploy to GitHub Pages |
83 | 55 | uses: JamesIves/github-pages-deploy-action@a1ea191d508feb8485aceba848389d49f80ca2dc # v4.4.3 |
84 | 56 | with: |
|
0 commit comments