File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Metko documentation
2+
3+ # build the documentation whenever there are new commits on main
4+ on :
5+ push :
6+ branches :
7+ - main
8+ # Alternative: only build for tags.
9+ # tags:
10+ # - '*'
11+
12+ # security: restrict permissions for CI jobs.
13+ permissions :
14+ contents : read
15+
16+ jobs :
17+ # Build the documentation and upload the static HTML files as an artifact.
18+ build :
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : actions/checkout@v5
22+ with :
23+ persist-credentials : false
24+ - uses : actions/setup-python@v5
25+ with :
26+ python-version : ' 3.13'
27+
28+ # ADJUST THIS: install all dependencies (including pdoc)
29+ - run : pip install -e .
30+ - run : pip install pdoc
31+ # ADJUST THIS: build your documentation into docs/.
32+ # We use a custom build script for pdoc itself, ideally you just run `pdoc -o docs/ ...` here.
33+ # - run: python docs/make.py
34+ - run : pdoc --docformat google -o docs/
35+
36+ - uses : actions/upload-pages-artifact@v4
37+ with :
38+ path : docs/
39+
40+ # Deploy the artifact to GitHub pages.
41+ # This is a separate job so that only actions/deploy-pages has the necessary permissions.
42+ deploy :
43+ needs : build
44+ runs-on : ubuntu-latest
45+ permissions :
46+ pages : write
47+ id-token : write
48+ environment :
49+ name : github-pages
50+ url : ${{ steps.deployment.outputs.page_url }}
51+ steps :
52+ - id : deployment
53+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments