Skip to content

Commit 13d1484

Browse files
authored
Create ci.yml
1 parent 4885a79 commit 13d1484

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)