File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy docs to GitHub pages
2+
3+ on :
4+ # Runs on pushes targeting the default branch
5+ push :
6+ branches : ["master"]
7+
8+ # Sets permissions write in gh
9+ permissions :
10+ contents : write
11+
12+ # Allow one concurrent deployment
13+ concurrency :
14+ group : " pages"
15+ cancel-in-progress : true
16+
17+ jobs :
18+ deploy :
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : actions/checkout@v4
22+ - name : Configure Git Credentials
23+ run : |
24+ git config user.name mkdocs-gh-deploy[bot]
25+ git config user.email mkdocs-gh-deploy@developerinsider.co
26+ - uses : actions/setup-python@v5
27+ with :
28+ python-version : 3.x
29+ - run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
30+ - uses : actions/cache@v4
31+ with :
32+ key : mkdocs-material-${{ env.cache_id }}
33+ path : .cache
34+ restore-keys : |
35+ mkdocs-material-
36+ - run : pip install mkdocs-material
37+ - run : pip install mkdocs-awesome-pages-plugin
38+ - run : pip install mkdocs-git-revision-date-localized-plugin
39+ - run : pip install mkdocs-git-authors-plugin
40+ - run : pip install mkdocs-minify-plugin
41+ - run : pip install mkdocs--plugin
42+ - run : mkdocs gh-deploy --force
You can’t perform that action at this time.
0 commit comments