Skip to content

Commit

Permalink
docs: deploy all (#16951)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4e3273a)
  • Loading branch information
Borda committed Mar 30, 2023
1 parent ef23c6d commit a69513c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,19 @@ jobs:
- run: aws s3 sync s3://sphinx-packages/ pypi_pkgs/
if: ${{ matrix.pkg-name != 'pytorch' }}

- name: Install package
# Note: This uses an internal pip API and may not always work
# https://github.com/actions/cache/blob/master/examples.md#multiple-oss-in-a-workflow
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: docs-test-${{ matrix.pkg-name }}-${{ hashFiles('requirements/${{ matrix.pkg-name }}/*.txt') }}
restore-keys: docs-test-${{ matrix.pkg-name }}-

- name: Install this package
run: |
pip install -e .[extra,cloud,ui] -U -r requirements/${{ matrix.pkg-name }}/docs.txt \
-f ${TORCH_URL} -f pypi_pkgs/
-f pypi_pkgs/ -f ${TORCH_URL}
pip list
- name: Test Documentation
Expand Down Expand Up @@ -96,6 +105,15 @@ jobs:
- run: aws s3 sync s3://sphinx-packages/ pypi_pkgs/
if: ${{ matrix.pkg-name != 'pytorch' }}

# Note: This uses an internal pip API and may not always work
# https://github.com/actions/cache/blob/master/examples.md#multiple-oss-in-a-workflow
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: docs-make-${{ hashFiles('requirements/${{ matrix.pkg-name }}/*.txt') }}
restore-keys: docs-make-

- name: Install package & dependencies
run: |
pip --version
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,6 @@ node_modules/

# instalation artifacts
requirements/base.txt

# sourced notebooks from tutorials
_notebooks/.notebooks/

0 comments on commit a69513c

Please sign in to comment.