Skip to content

Commit 3321f66

Browse files
authored
Create deploy.yml
1 parent a8843b7 commit 3321f66

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deploy MkDocs site to GitHub Pages
2+
on:
3+
push:
4+
branches: [ main ]
5+
permissions:
6+
contents: write
7+
pages: write
8+
id-token: write
9+
jobs:
10+
build-deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out repository
14+
uses: actions/checkout@v4
15+
- name: Setup Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.x'
19+
- name: Install dependencies
20+
run: |
21+
pip install -r requirements.txt
22+
- name: Build site
23+
run: mkdocs build --strict
24+
- name: Deploy to GitHub Pages
25+
uses: peaceiris/actions-gh-pages@v3
26+
with:
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
publish_dir: ./site
29+
publish_branch: gh-pages

0 commit comments

Comments
 (0)