File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : " Docs"
2+
23on :
3- - pull_request
4+ push :
5+ branches :
6+ - main
7+ tags :
8+ - ' [0-9]+.[0-9]+.[0-9]+'
9+ pull_request :
10+ types : [opened, synchronize, reopened]
411
512permissions :
613 contents : read
714
815jobs :
916 docs :
17+ name : Documentation
1018 runs-on : ubuntu-latest
1119 steps :
1220 - name : Harden the runner (Audit all outbound calls)
@@ -22,10 +30,42 @@ jobs:
2230 python-version : ' 3.13'
2331
2432 - name : Install documentation requirements
25- run : " pip install .[docs] && pip install sphinx_design"
33+ run : |
34+ pip install .[docs]
35+ pip install sphinx_design
2636
2737 - name : Build docs
2838 run : " make -C doc html"
2939
30- - name : Build landing-page
31- run : " make -C doc/landing-page html"
40+ landing-page :
41+ name : Landing page
42+ runs-on : ubuntu-latest
43+ steps :
44+ - name : Harden the runner (Audit all outbound calls)
45+ uses : step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
46+ with :
47+ egress-policy : audit
48+
49+ - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v5.0.0
50+
51+ - name : Setup Python
52+ uses : actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
53+ with :
54+ python-version : " 3.13"
55+
56+ - name : Install dependencies
57+ run : |
58+ pip install .[docs]
59+ pip install sphinx_design
60+
61+ - name : Build landing-page
62+ run : " make -C doc/landing-page html"
63+
64+ - name : Publish
65+ if : github.ref == 'refs/heads/main'
66+ uses : tsunematsu21/actions-publish-gh-pages@c04b531c52b8f9d25c596bc6e6a7ddc116b2f3f8 # v1.0.2
67+ with :
68+ dir : doc/landing-page/_build/html
69+ repo : dfetch-org/dfetch-org.github.io
70+ branch : main
71+ token : ${{ secrets.GH_DFETCH_ORG_DEPLOY }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments