Skip to content

Commit 132c896

Browse files
committed
add workflow to build and deploy docs to github pages
1 parent a87c0fe commit 132c896

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/github-pages.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build and deploy Docs site to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
github-pages:
13+
runs-on: ubuntu-latest
14+
steps:
15+
16+
- name: Checkout Repo
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Python
20+
uses: actions/setup-python@v5
21+
with:
22+
ruby-version: 3.x
23+
24+
- name: Configure Git Credentials
25+
run: |
26+
git config user.name github-actions[bot]
27+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
28+
29+
- name: Build and Deploy
30+
run: |
31+
pip install mkdocs-material
32+
mkdocs gh-deploy --force

0 commit comments

Comments
 (0)