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 : Deploy Docs (manual)
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ branch :
7+ description : " Branch to deploy"
8+ required : true
9+ default : " main"
10+
11+ permissions :
12+ contents : write
13+
14+ jobs :
15+ build-deploy :
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@v4
19+ with :
20+ ref : ${{ github.event.inputs.branch }}
21+ - uses : actions/setup-python@v5
22+ with :
23+ python-version : " 3.11"
24+ - name : Install docs deps
25+ run : |
26+ python -m pip install --upgrade pip
27+ python -m pip install -e ".[docs]"
28+ - name : Build site
29+ run : mkdocs build
30+ - name : Add CNAME for custom domain
31+ run : echo "dlbacktrace.lexsi.ai" > ./site/CNAME
32+ - name : Deploy to GitHub Pages
33+ uses : peaceiris/actions-gh-pages@v3
34+ with :
35+ github_token : ${{ secrets.GITHUB_TOKEN }}
36+ publish_dir : ./site
You can’t perform that action at this time.
0 commit comments