-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (38 loc) · 1.02 KB
/
build-docs.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
name: Build DOCs
on:
push:
tags:
- '*'
workflow_dispatch: {}
jobs:
build:
name: build-doc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install template
run: |
python -m pip install --upgrade pip
pip install furo
- name: Install dependencies
run: |
pip install aiohttp asyncio
cd docs
make clean html
make html
cd ..
mv docs/_build/html/* .
rm -rf docs venv __pycache__ tgram .gitignore LICENSE .github README.md pyproject.toml examples
touch .nojekyll
git checkout --orphan gh-pages
git add . -A
git config user.email "[email protected]"
git config user.name "GitHub Action <Zaid>"
git commit -m "Auto update docs"
git push origin HEAD:gh-pages --force