Skip to content

Commit 1bf1d6a

Browse files
committed
work
1 parent d0316e4 commit 1bf1d6a

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/deploy.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
name: Build and Deploy Documentation
2+
23
on:
34
push:
45
branches:
5-
- main # Set your default branch here if it's not main
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
611

712
jobs:
813
deploy:
914
runs-on: ubuntu-latest
1015
steps:
11-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4 # Updated to v4
17+
1218
- name: Set up Python
1319
uses: actions/setup-python@v4
1420
with:
15-
python-version: 3.9
21+
python-version: '3.x' # More flexible Python version
1622

1723
- name: Install dependencies
1824
run: |
1925
python -m pip install --upgrade pip
20-
pip install mkdocs-material
26+
pip install mkdocs-material pymdown-extensions
2127
22-
- name: Build site
23-
run: mkdocs build
24-
25-
- name: Create .nojekyll file
26-
run: touch ./site/.nojekyll
27-
28-
- name: Deploy to GitHub Pages
29-
uses: peaceiris/actions-gh-pages@v3
30-
with:
31-
github_token: ${{ secrets.GITHUB_TOKEN }}
32-
publish_dir: ./site
28+
- name: Build and Deploy
29+
run: |
30+
git config --global user.name "github-actions[bot]"
31+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
32+
mkdocs gh-deploy --force

0 commit comments

Comments
 (0)