Skip to content

Commit 5ab5fee

Browse files
committed
ci: added pages
1 parent df8b37e commit 5ab5fee

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/docs.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
paths:
6+
- 'docs/**'
7+
pull_request:
8+
branches:
9+
- main
10+
paths:
11+
- 'docs/**'
12+
release:
13+
types:
14+
- released
15+
jobs:
16+
pages:
17+
runs-on: ubuntu-20.04
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Configure Git Credentials
21+
run: |
22+
git config user.name github-actions[bot]
23+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
24+
- uses: actions/setup-python@v5
25+
with:
26+
python-version: 3.x
27+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
28+
- uses: actions/cache@v4
29+
with:
30+
key: mkdocs-material-${{ env.cache_id }}
31+
path: .cache
32+
restore-keys: |
33+
mkdocs-material-
34+
- run: poetry install
35+
- run: poetry run mkdocs gh-deploy --force

0 commit comments

Comments
 (0)