Skip to content

Commit fe28e4d

Browse files
pages deploy
1 parent c4241bc commit fe28e4d

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

0 commit comments

Comments
 (0)