Skip to content

Commit 8b75a19

Browse files
auto update docs workflow
1 parent adcb3a4 commit 8b75a19

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deploy Docs to Root GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
deploy-root-docs:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout CodeGraphContext
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.11"
19+
20+
- name: Install MkDocs
21+
run: |
22+
pip install mkdocs mkdocs-material
23+
24+
- name: Build docs
25+
working-directory: docs
26+
run: mkdocs build --clean
27+
28+
- name: Deploy to codegraphcontext.github.io
29+
uses: peaceiris/actions-gh-pages@v4
30+
with:
31+
personal_token: ${{ secrets.GITHUB_TOKEN }}
32+
external_repository: CodeGraphContext/codegraphcontext.github.io
33+
publish_dir: docs/site
34+
publish_branch: main

0 commit comments

Comments
 (0)