Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
6e13b650
Unverified
Commit
6e13b650
authored
Oct 27, 2024
by
Chayenne
Committed by
GitHub
Oct 27, 2024
Browse files
Fix docs deploy ci (#1821)
parent
6fcd6d7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
+7
-15
.github/workflows/deploy-docs.yml
.github/workflows/deploy-docs.yml
+7
-15
No files found.
.github/workflows/deploy-docs.yml
View file @
6e13b650
...
@@ -13,14 +13,9 @@ jobs:
...
@@ -13,14 +13,9 @@ jobs:
execute-and-deploy
:
execute-and-deploy
:
runs-on
:
1-gpu-runner
runs-on
:
1-gpu-runner
if
:
github.repository == 'sgl-project/sglang'
if
:
github.repository == 'sgl-project/sglang'
defaults
:
run
:
working-directory
:
docs
steps
:
steps
:
-
name
:
Checkout code
-
name
:
Checkout code
uses
:
actions/checkout@v3
uses
:
actions/checkout@v3
with
:
path
:
.
-
name
:
Set up Python
-
name
:
Set up Python
uses
:
actions/setup-python@v4
uses
:
actions/setup-python@v4
...
@@ -30,7 +25,7 @@ jobs:
...
@@ -30,7 +25,7 @@ jobs:
-
name
:
Install dependencies
-
name
:
Install dependencies
run
:
|
run
:
|
bash scripts/ci_install_dependency.sh
bash scripts/ci_install_dependency.sh
pip install -r requirements.txt
pip install -r
docs/
requirements.txt
apt-get update
apt-get update
apt-get install -y pandoc
apt-get install -y pandoc
...
@@ -38,8 +33,11 @@ jobs:
...
@@ -38,8 +33,11 @@ jobs:
run
:
|
run
:
|
python -m ipykernel install --user --name python3 --display-name "Python 3"
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
:
|
run
:
|
cd docs
for nb in *.ipynb; do
for nb in *.ipynb; do
if [ -f "$nb" ]; then
if [ -f "$nb" ]; then
echo "Executing $nb"
echo "Executing $nb"
...
@@ -49,15 +47,9 @@ jobs:
...
@@ -49,15 +47,9 @@ jobs:
fi
fi
done
done
-
name
:
Build documentation
run
:
|
make html
make html
-
name
:
Push to sgl-project.github.io
env
:
GITHUB_TOKEN
:
${{ secrets.PAT_TOKEN }}
run
:
|
cd _build/html
cd _build/html
git clone https://$GITHUB_TOKEN@github.com/sgl-project/sgl-project.github.io.git ../sgl-project.github.io
git clone https://$GITHUB_TOKEN@github.com/sgl-project/sgl-project.github.io.git ../sgl-project.github.io
cp -r * ../sgl-project.github.io
cp -r * ../sgl-project.github.io
cd ../sgl-project.github.io
cd ../sgl-project.github.io
...
@@ -67,4 +59,4 @@ jobs:
...
@@ -67,4 +59,4 @@ jobs:
git commit -m "Update $(date +'%Y-%m-%d %H:%M:%S')"
git commit -m "Update $(date +'%Y-%m-%d %H:%M:%S')"
git push https://$GITHUB_TOKEN@github.com/sgl-project/sgl-project.github.io.git main
git push https://$GITHUB_TOKEN@github.com/sgl-project/sgl-project.github.io.git main
cd ..
cd ..
rm -rf sgl-project.github.io
rm -rf sgl-project.github.io
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment