Skip to content

Commit 07e0dbf

Browse files
committed
switched to mkdocs deploy action
1 parent 7276bd7 commit 07e0dbf

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

.github/workflows/mkdocs_deploy.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,20 @@ name: Build Documentation using MkDocs
44
# events but only for the master branch
55
on:
66
push:
7-
branches: [deploy]
7+
branches: [main]
88
pull_request:
9-
branches: [deploy]
9+
branches: [main]
1010
permissions:
1111
contents: write
1212
jobs:
1313
build:
1414
name: Build and Deploy Documentation
1515
runs-on: ubuntu-latest
1616
steps:
17-
- name: Checkout Master
17+
- name: Checkout Repository
1818
uses: actions/checkout@v4
1919

20-
- name: Set up Python
21-
uses: actions/setup-python@v5
22-
with:
23-
python-version: '3.x'
24-
25-
- name: Install dependencies
26-
run: |
27-
python -m pip install --upgrade pip
28-
pip install mkdocs-material
29-
30-
- name: Deploy
31-
run: |
32-
mkdocs gh-deploy --strict
20+
- name: Deploy Docs
21+
uses: mhausenblas/mkdocs-deploy-gh-pages@master
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)