Skip to content

Commit 37d4a08

Browse files
committed
deploy CI: next try
1 parent 8002fcd commit 37d4a08

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

.github/workflows/mkdocs_deploy.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,19 @@ jobs:
1616
steps:
1717
- name: Checkout Repository
1818
uses: actions/checkout@v4
19-
20-
- name: Deploy Docs
21-
uses: mhausenblas/mkdocs-deploy-gh-pages@master
22-
env:
23-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
- name: Configure Git Credentials
20+
run: |
21+
git config user.name github-actions[bot]
22+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
23+
- uses: actions/setup-python@v5
24+
with:
25+
python-version: 3.x
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+
- run: pip install mkdocs-material
34+
- run: mkdocs gh-deploy --force

environment.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: mesh_navigation_docs
22
dependencies:
33
- python=3.12
4-
- mkdocs>=1.6
5-
- mkdocs-material
4+
- pip
5+
6+
- pip:
7+
- mkdocs-material>=9.6
8+
- mkdocs>=1.6

0 commit comments

Comments
 (0)