File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed
Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change 11name : Build and Deploy Documentation
2+
23on :
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
712jobs :
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
You can’t perform that action at this time.
0 commit comments