-
Notifications
You must be signed in to change notification settings - Fork 19
47 lines (43 loc) · 1.21 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: ci
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- name: Install dependencies
env:
INSIDERS: ${{ secrets.INSIDERS }}
run: |
pip install git+https://${INSIDERS}@github.com/davidsdesignserver/mkdocs-material-insiders.git
pip install mkdocs-glightbox
pip install mkdocs-git-revision-date-localized-plugin
pip install mkdocs-git-committers-plugin-2
pip install pymdown-extensions pyyaml
pip install "mkdocs-material[imaging]"
pip install mkdocs-git-committers-plugin-2
sudo apt-get install pngquant
- name: Build and Deploy MkDocs
env:
MKDOCS_GIT_COMMITTERS_APIKEY: ${{ secrets.MKDOCS_PAT }}
CI: true
INSIDERS: true
run: |
mkdocs build
mkdocs gh-deploy --force