forked from triton-lang/triton
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 1.33 KB
/
documentation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Documentation
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
Build-Documentation:
runs-on: [self-hosted, A100]
steps:
- name: Checkout branch
uses: actions/checkout@v2
with:
token: ${{ secrets.CI_PAT }}
fetch-depth: 0
- name: Clear docs
run: |
rm -r /tmp/triton-docs
continue-on-error: true
- name: Install dependent packages
run: |
pip3 install tabulate
pip3 install cmake
pip3 install sphinx
pip3 install myst_parser
#- name: Fetch dependent branches
# run: |
# git fetch origin main:main
- name: Build docs
run: |
cd docs
export PATH=$(python3 -c "import cmake; print(cmake.CMAKE_BIN_DIR)"):$PATH
python3 -m sphinx . _build/html/main
- name: Update docs
run: |
mkdir /tmp/triton-docs
mv docs/_build/html/* /tmp/triton-docs/
git checkout gh-pages
cp -r CNAME /tmp/triton-docs/
cp -r index.html /tmp/triton-docs/
cp -r .nojekyll /tmp/triton-docs/
rm -r *
cp -r /tmp/triton-docs/* .
git add .
git commit -am "[GH-PAGES] Updated website"
- name: Publish docs
run: |
git push origin gh-pages