Skip to content

Commit 3fba90e

Browse files
authored
Consolidate doc build steps into the nox "make" session (#3143)
* Convert builds to nox * missing arg * Correct working-directory for nox build
1 parent efcffed commit 3fba90e

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

.github/workflows/reusable-build-docs.yaml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,28 +57,17 @@ jobs:
5757
- name: Output Python info
5858
run: python --version --version && which python
5959

60-
- name: Graft ansible-core
61-
run: nox -s clone-core
62-
working-directory: build-directory
63-
64-
- name: Install project requirements
65-
run: >-
66-
python -m pip install
67-
-r tests/requirements.in
68-
-c tests/requirements.txt
69-
working-directory: build-directory
70-
7160
- name: Set the VERSION variable
7261
run: echo VERSION="${PACKAGE_VERSION}" >> "${GITHUB_ENV}"
7362

7463
- name: Build the Ansible community package docs
7564
run: >-
76-
make webdocs ${{
65+
nox -e make -- webdocs ${{
7766
inputs.generate-redirects && 'EXTRA_TAGS="-t redirects"' || ''
7867
}} ANSIBLE_VERSION="${{
7968
env.PACKAGE_VERSION != 'devel' && env.PACKAGE_VERSION || ''
8069
}}"
81-
working-directory: build-directory/docs/docsite
70+
working-directory: build-directory
8271

8372
- name: Create a tarball with the build contents
8473
run: >-

0 commit comments

Comments
 (0)