Skip to content

Commit 0c96a48

Browse files
committed
Add workflow for documentation site deployment
1 parent 8a90510 commit 0c96a48

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: deploy
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+
- name: Configure Git Credentials
17+
run: |
18+
git config user.name github-actions[bot]
19+
git config user.email github-actions[bot]@users.noreply.github.com
20+
- uses: actions/setup-python@v5
21+
with:
22+
python-version: 3.x
23+
- name: Set cache ID
24+
id: cache-id
25+
run: echo "date=$(date --utc '+%V')" >> $GITHUB_OUTPUT
26+
- uses: actions/cache@v4
27+
with:
28+
key: mkdocs-material-${{ steps.cache-id.outputs.date }}
29+
path: ~/.cache
30+
restore-keys: |
31+
mkdocs-material-
32+
- run: pip install mkdocs-material
33+
- run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)