-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (45 loc) · 1.2 KB
/
build-docs.yml
File metadata and controls
55 lines (45 loc) · 1.2 KB
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: Build Docs
on:
push:
branches: [main]
repository_dispatch:
types: [fenn-updated]
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout dev-docs
uses: actions/checkout@v4
- name: Checkout pyfenn/fenn
uses: actions/checkout@v4
with:
repository: pyfenn/fenn
path: fenn
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install Graphviz
run: sudo apt-get install -y graphviz
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install sphinx
pip install -r requirements.txt
pip install -e "fenn/[torch,vision]"
- name: Generate UML diagrams
run: make uml FENN_PKG=fenn/fenn
- name: Build HTML docs
run: make html
- name: Deploy to build branch
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/html
publish_branch: build
force_orphan: true