Skip to content

Commit

Permalink
[fbgemm_gpu] Save built docs as GHA artifact
Browse files Browse the repository at this point in the history
- Save built docs as GHA artifact
  • Loading branch information
q10 committed Feb 14, 2025
1 parent a4be13a commit eb5b096
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/scripts/fbgemm_gpu_docs.bash
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,8 @@ build_fbgemm_gpu_docs () {
# shellcheck disable=SC2086
(print_exec conda run ${env_prefix} make html) || return 1

# Package the docs for saving as GitHub actions artifact
(tar -cvzf docs.tar.gz build) || return 1

echo "[DOCS] FBGEMM-GPU documentation build completed"
}
1 change: 0 additions & 1 deletion .github/workflows/fbgemm_gpu_ci_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ jobs:
run: . $PRELUDE; cd fbgemm_gpu; build_fbgemm_gpu_package $BUILD_ENV nightly cuda

- name: Upload Built Wheel as GHA Artifact
# Cannot upgrade to actions/upload-artifact@v4 yet because GLIBC on the instance is too old
uses: actions/upload-artifact@v4
with:
name: fbgemm_gpu_nightly_cuda_${{ matrix.host-machine.arch }}_${{ matrix.compiler }}_py${{ matrix.python-version }}_cu${{ matrix.cuda-version }}.whl
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/fbgemm_gpu_ci_genai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ jobs:
run: . $PRELUDE; cd fbgemm_gpu; build_fbgemm_gpu_package $BUILD_ENV nightly genai

- name: Upload Built Wheel as GHA Artifact
# Cannot upgrade to actions/upload-artifact@v4 yet because GLIBC on the instance is too old
uses: actions/upload-artifact@v4
with:
name: fbgemm_gpu_nightly_genai_${{ matrix.host-machine.arch }}_${{ matrix.compiler }}_py${{ matrix.python-version }}_cu${{ matrix.cuda-version }}.whl
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/fbgemm_gpu_ci_genai_generic_infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ jobs:
run: . $PRELUDE; cd fbgemm_gpu; build_fbgemm_gpu_package $BUILD_ENV nightly genai

- name: Upload Built Wheel as GHA Artifact
# Cannot upgrade to actions/upload-artifact@v4 yet because GLIBC on the instance is too old
uses: actions/upload-artifact@v4
with:
name: fbgemm_gpu_nightly_genai_${{ matrix.host-machine.arch }}_${{ matrix.compiler }}_py${{ matrix.python-version }}_cu${{ matrix.cuda-version }}.whl
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/fbgemm_gpu_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ jobs:
- name: Build FBGEMM_GPU Documentation
run: . $PRELUDE; cd fbgemm_gpu/docs; build_fbgemm_gpu_docs $BUILD_ENV

- name: Upload Built Docs as GHA Artifact
uses: actions/upload-artifact@v4
with:
name: fbgemm_gpu_docs_${{ github.sha }}.tar.gz
path: fbgemm_gpu/docs/docs.tar.gz
if-no-files-found: error

- name: Deploy FBGEMM_GPU Documentation
if: ${{ github.event_name != 'pull_request' }}
uses: JamesIves/github-pages-deploy-action@releases/v4
Expand Down
2 changes: 1 addition & 1 deletion fbgemm_gpu/docs/src/general/documentation/Python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ docstring:
.. autofunction:: fbgemm_gpu.docs.examples.example_method
#. Make sure the ``.rst`` file is included in to the ``toctree`` in
``index.rst`` (e.g. :ref:`fbgemm-gpu.toc.api.python`).
``index.rst`` (e.g. :ref:`fbgemm-gpu.toc.api.python.ops`).

#. Verify the changes by building the docs locally with
:ref:`general.docs.build` or submitting a PR for a Netlify preview.
Expand Down

0 comments on commit eb5b096

Please sign in to comment.