Skip to content

Commit

Permalink
Save built docs as GHA artifact (#3695)
Browse files Browse the repository at this point in the history
Summary:
X-link: facebookresearch/FBGEMM#774

- Save built docs as GHA artifact

Pull Request resolved: #3695

Reviewed By: sryap

Differential Revision: D69688831

Pulled By: q10

fbshipit-source-id: 8a60b83b64579b5052777c439b4afb49f106f83b
  • Loading branch information
q10 committed Feb 19, 2025
1 parent fa4bc6b commit 90fa2ba
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/fbgemm_gpu_ci_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ 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@v3
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
path: fbgemm_gpu/dist/*.whl
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/fbgemm_gpu_ci_genai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ 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@v3
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
path: fbgemm_gpu/dist/*.whl
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/fbgemm_gpu_ci_genai_generic_infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ 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@v3
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
path: fbgemm_gpu/dist/*.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 }}
path: fbgemm_gpu/docs/build
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 90fa2ba

Please sign in to comment.