Skip to content

Commit 951738d

Browse files
committed
mkdoc init upto functions
1 parent f02f07b commit 951738d

File tree

20 files changed

+5469
-5
lines changed

20 files changed

+5469
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy MkDocs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Configure Git Credentials
18+
run: |
19+
git config user.name github-actions-deploy[bot]
20+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
21+
22+
- uses: actions/setup-python@v5
23+
with:
24+
python-version: 3.x
25+
26+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
27+
- uses: actions/cache@v4
28+
with:
29+
key: mkdocs-material-${{ env.cache_id }}
30+
path: ~/.cache
31+
restore-keys: |
32+
mkdocs-material-
33+
34+
- name: Install dependencies
35+
run: |
36+
pip install mkdocs-material mkdocs-git-authors-plugin mkdocs-git-revision-date-localized-plugin mkdocs-git-committers-plugin-2
37+
38+
- name: Deploy MkDocs
39+
run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)