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
OpenDAS
ColossalAI
Commits
b7975d2b
"...Chat/git@developer.sourcefind.cn:OpenDAS/colossalai.git" did not exist on "b5f0566363687aaa91767bb7069af874bedfb7e8"
Unverified
Commit
b7975d2b
authored
Jan 07, 2022
by
ver217
Committed by
GitHub
Jan 07, 2022
Browse files
add workflow for deploying doc (#129)
parent
dceae851
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
.github/workflows/document.yml
.github/workflows/document.yml
+42
-0
No files found.
.github/workflows/document.yml
0 → 100644
View file @
b7975d2b
name
:
Deploy documentation
on
:
pull_request
:
types
:
[
closed
]
branches
:
-
'
*'
paths
:
-
'
docs/**'
-
'
colossalai/**'
jobs
:
build
:
name
:
Build and deploy documentation
runs-on
:
[
self-hosted
,
gpu
]
container
:
image
:
nvcr.io/nvidia/pytorch:21.07-py3
options
:
--gpus all --rm --ipc=host -v /home/gitact/.ssh:/root/ssh
timeout-minutes
:
1200
if
:
github.base_ref == 'main' && github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI' && github.event.pull_request.merged ==
true
steps
:
-
name
:
Setup Environment
run
:
|
export https_proxy=http://172.17.0.1:7890 http_proxy=http://172.17.0.1:7890 all_proxy=socks5://172.17.0.1:7890
cp -r /root/ssh /root/.ssh
-
name
:
Install dependencies
run
:
|
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip install -U pip setuptools wheel --user
pip install pytest tensorboard deepspeed apex sphinx sphinx-rtd-theme myst-parser
-
uses
:
actions/checkout@v2
-
name
:
Install Colossal-AI
run
:
|
pip install -v --no-cache-dir --global-option="--cuda_ext" .
-
name
:
Build documentation
run
:
|
cd docs
rm -rf colossalai
make apidoc
make html
-
name
:
Deploy documentation
run
:
|
scp -r docs/.build/html server:/home/shared/web/html/colossalai-doc
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