Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit 22ed674

Browse files
authored
add doc deploy to nightly ubuntu wheel build (#446)
1 parent 3408de4 commit 22ed674

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed

.github/workflows/deploy-doc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
- name: Install TorchArrow
2323
run: |
24-
pip install --pre torcharrow -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
24+
pip install torcharrow
2525
2626
- name: Build the docs
2727
run: |

.github/workflows/nightly-wheel.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY:
1010
required: true
1111

12+
# Allows you to run this workflow manually from the Actions tab
13+
workflow_dispatch:
14+
1215
jobs:
1316
linux-container:
1417
runs-on: ubuntu-latest
@@ -22,9 +25,6 @@ jobs:
2225
- 3.9
2326
- "3.10"
2427
steps:
25-
- name: Print CPU info
26-
run: cat /proc/cpuinfo
27-
2828
- name: Check out source repository
2929
uses: actions/checkout@v2
3030
with:
@@ -56,6 +56,29 @@ jobs:
5656
~/.local/bin/aws s3 cp "$pkg" "$S3_PATH" --acl public-read
5757
done
5858
59+
# We only run this part on ubuntu wheel build for python 3.7,
60+
# since we only need to deploy the doc once.
61+
- name: Install TorchArrow and build docs
62+
if: matrix.python-version == '3.7'
63+
run: |
64+
source /opt/conda/etc/profile.d/conda.sh
65+
conda activate env${{ matrix.python-version }}
66+
pip install fixed_dist/*.whl
67+
cd ./docs
68+
pip install -r requirements.txt --user
69+
PATH=${PATH}:~/.local/bin
70+
make html
71+
cd ..
72+
73+
- name: Deploy Docs on Push
74+
if: matrix.python-version == '3.7'
75+
uses: JamesIves/github-pages-deploy-action@v4.2.5
76+
with:
77+
token: ${{ secrets.GITHUB_TOKEN }}
78+
branch: gh-pages # The branch the action should deploy to.
79+
folder: docs/build/html # The folder the action should deploy.
80+
target-folder: main
81+
5982
macos-container:
6083
runs-on: macos-latest
6184
strategy:

0 commit comments

Comments
 (0)