File tree Expand file tree Collapse file tree 3 files changed +829
-25
lines changed Expand file tree Collapse file tree 3 files changed +829
-25
lines changed Original file line number Diff line number Diff line change 1- name : Deploy MkDocs to GitHub Pages
1+ name : Deploy site + docs
22
33on :
44 push :
5- branches :
6- - main
5+ branches : [main]
76
87jobs :
98 deploy :
109 runs-on : ubuntu-latest
11-
1210 steps :
13- - name : Code Checkout
14- uses : actions/checkout@v3
11+ - name : Code Checkout
12+ uses : actions/checkout@v4
13+
14+ - name : Setup Python
15+ uses : actions/setup-python@v5
16+ with :
17+ python-version : ' 3.x'
1518
16- - name : Setup Python
17- uses : actions/setup-python@v4
18- with :
19- python-version : ' 3.x '
19+ - name : Install Dependencies
20+ run : |
21+ python -m pip install --upgrade pip
22+ pip install mkdocs mkdocs-material pymdown-extensions mkdocstrings[python] mkdocs-static-i18n
2023
21- - name : Install Dependencies
22- run : |
23- python -m pip install --upgrade pip
24- pip install mkdocs
25- pip install mkdocs-material
26- pip install pymdown-extensions
27- pip install mkdocstrings[python]
28- pip install mkdocs-static-i18n
24+ - name : Build MkDocs into site/docs
25+ run : mkdocs build --strict
2926
30- - name : Build the documentation
31- run : mkdocs build
27+ - name : Add landing to site/
28+ run : |
29+ mkdir -p site
30+ cp -r docs/landing/* site/
3231
33- - name : Deploy to GitHub Pages
34- uses : peaceiris/actions-gh-pages@v3
35- with :
36- github_token : ${{ secrets.GITHUB_TOKEN }}
37- publish_dir : ./site
32+ - name : Deploy to GitHub Pages
33+ uses : peaceiris/actions-gh-pages@v3
34+ with :
35+ github_token : ${{ secrets.GITHUB_TOKEN }}
36+ publish_dir : ./site
37+ cname : pydoll.tech
You can’t perform that action at this time.
0 commit comments