Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docs deploy ci #1821

Merged
merged 4 commits into from
Oct 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 7 additions & 15 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,9 @@ jobs:
execute-and-deploy:
runs-on: 1-gpu-runner
if: github.repository == 'sgl-project/sglang'
defaults:
run:
working-directory: docs
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
path: .

- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -30,16 +25,19 @@ jobs:
- name: Install dependencies
run: |
bash scripts/ci_install_dependency.sh
pip install -r requirements.txt
pip install -r docs/requirements.txt
apt-get update
apt-get install -y pandoc

- name: Setup Jupyter Kernel
run: |
python -m ipykernel install --user --name python3 --display-name "Python 3"

- name: Execute notebooks
- name: Execute notebooks and push to documents
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
run: |
cd docs
for nb in *.ipynb; do
if [ -f "$nb" ]; then
echo "Executing $nb"
Expand All @@ -49,15 +47,9 @@ jobs:
fi
done

- name: Build documentation
run: |
make html

- name: Push to sgl-project.github.io
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
run: |
cd _build/html

git clone https://[email protected]/sgl-project/sgl-project.github.io.git ../sgl-project.github.io
cp -r * ../sgl-project.github.io
cd ../sgl-project.github.io
Expand All @@ -67,4 +59,4 @@ jobs:
git commit -m "Update $(date +'%Y-%m-%d %H:%M:%S')"
git push https://[email protected]/sgl-project/sgl-project.github.io.git main
cd ..
rm -rf sgl-project.github.io
rm -rf sgl-project.github.io
Loading