File tree 2 files changed +29
-29
lines changed
2 files changed +29
-29
lines changed Original file line number Diff line number Diff line change 1
- name : ci
1
+ name : Build and Deploy MkDocs Site
2
+
2
3
on :
3
4
push :
4
5
branches :
5
6
- main
6
- permissions :
7
- contents : write
7
+
8
8
jobs :
9
- deploy :
9
+ build-and- deploy :
10
10
runs-on : ubuntu-latest
11
+
11
12
steps :
12
- - uses : actions/checkout@v4
13
- - name : Configure Git Credentials
14
- run : |
15
- git config user.name github-actions[bot]
16
- git config user.email 41898282+github-actions[bot]@users.noreply.github.com
17
- - uses : actions/setup-python@v5
13
+ - name : Checkout code
14
+ uses : actions/checkout@v2
15
+
16
+ - name : Set up Python
17
+ uses : actions/setup-python@v2
18
18
with :
19
- python-version : 3.x
20
- - run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
21
- - uses : actions/cache@v4
19
+ python-version : ' 3.x'
20
+
21
+ - name : Install dependencies
22
+ run : |
23
+ pip install mkdocs
24
+ pip install mkdocs-material
25
+ pip install pymdown-extensions
26
+ pip install mkdocs-minify-plugin
27
+ pip install neoteroi-mkdocs
28
+ pip install mkdocs-git-revision-date-localized-plugin
29
+
30
+ - name : Build MkDocs site
31
+ run : mkdocs build
32
+
33
+ - name : Deploy GitHub Pages
34
+ uses : JamesIves/github-pages-deploy-action@releases/v3
22
35
with :
23
- key : mkdocs-material-${{ env.cache_id }}
24
- path : .cache
25
- restore-keys : |
26
- mkdocs-material-
27
- - run : pip install mkdocs-material
28
- - run : mkdocs gh-deploy --force
36
+ BRANCH : gh-pages
37
+ FOLDER : site
38
+ SINGLE_COMMIT : true
Original file line number Diff line number Diff line change @@ -80,11 +80,6 @@ markdown_extensions:
80
80
- pymdownx.snippets
81
81
- pymdownx.superfences
82
82
- neoteroi.cards
83
- - termynal :
84
- title : bash
85
- buttons : macos
86
- prompt_literal_start :
87
- - " $"
88
83
- footnotes
89
84
- attr_list
90
85
- md_in_html
@@ -96,11 +91,6 @@ plugins:
96
91
- git-revision-date-localized :
97
92
type : timeago
98
93
fallback_to_build_date : true
99
- - termynal :
100
- title : bash
101
- buttons : macos
102
- prompt_literal_start :
103
- - " $"
104
94
105
95
extra_css :
106
96
- ' assets/css/app.css'
You can’t perform that action at this time.
0 commit comments