Skip to content

Commit 53fbca6

Browse files
authored
Update ci.yml
1 parent 3e67ca3 commit 53fbca6

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/ci.yml

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
name: Documentation
2-
1+
name: ci
32
on:
43
push:
54
branches:
5+
- master
66
- main
7-
paths:
8-
- "**.md"
9-
- "mkdocs.yml"
10-
workflow_dispatch:
11-
7+
permissions:
8+
contents: write
129
jobs:
13-
docs:
10+
deploy:
1411
runs-on: ubuntu-latest
1512
steps:
16-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-python@v4
1715
with:
18-
fetch-depth: 0
19-
- uses: actions/setup-python@v2
20-
- run: pip install --upgrade pip && pip install mkdocs mkdocs-gen-files
21-
- run: git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
22-
- name: Publish docs
23-
run: mkdocs gh-deploy
16+
python-version: 3.x
17+
- uses: actions/cache@v2
18+
with:
19+
key: ${{ github.ref }}
20+
path: .cache
21+
- run: pip install mkdocs-material
22+
- run: pip install pillow cairosvg
23+
- run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)