File tree Expand file tree Collapse file tree 3 files changed +2350
-0
lines changed
Expand file tree Collapse file tree 3 files changed +2350
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : Deploy LinkML Registry Documentation to GitHub Pages
3+
4+ on :
5+ push :
6+ branches :
7+ - main
8+ workflow_dispatch :
9+
10+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+
16+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
17+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
18+ concurrency :
19+ group : " pages"
20+ cancel-in-progress : false
21+
22+ jobs :
23+ build-docs :
24+ runs-on : ubuntu-latest
25+ steps :
26+ - name : Checkout
27+ uses : actions/checkout@v4
28+ with :
29+ fetch-depth : 0 # otherwise, you will fail to push refs to dest repo
30+
31+ - name : Install uv
32+ uses : astral-sh/setup-uv@v5
33+
34+ - name : Set up Python
35+ uses : actions/setup-python@v5
36+ with :
37+ python-version : ' 3.11'
38+
39+ - name : Install project dependencies
40+ run : uv sync
41+
42+ - name : Create docs directory and add .nojekyll
43+ run : |
44+ mkdir -p docs
45+ touch docs/.nojekyll
46+
47+ - name : Generate documentation
48+ run : |
49+ make gendoc
50+
51+ - name : Setup Pages
52+ uses : actions/configure-pages@v4
53+
54+ - name : Build with mkdocs
55+ run : uv run mkdocs build
56+
57+ - name : Upload artifact
58+ uses : actions/upload-pages-artifact@v3
59+ with :
60+ path : ./site
61+
62+ deploy :
63+ environment :
64+ name : github-pages
65+ url : ${{ steps.deployment.outputs.page_url }}
66+ runs-on : ubuntu-latest
67+ needs : build-docs
68+ steps :
69+ - name : Deploy to GitHub Pages
70+ id : deployment
71+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments