-
Notifications
You must be signed in to change notification settings - Fork 1
executable file
·44 lines (37 loc) · 1008 Bytes
/
docs.yml
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
name: MkDocs Deploy
on:
push:
branches:
- "master"
paths:
- "docs/**"
- ".github/workflows/docs.yml"
- "mkdocs.yml"
permissions:
contents: write
jobs:
mkdocs:
name: MkDocs Deploy
if: ${{ !contains(toJSON(github.event.head_commit.message), '!#skip-build#!') }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install mkdocs-material mkdocs-minify-plugin
- name: Configure Git user
run: |
git config --local user.email "ops+grid-bot-gh@vmminfra.net"
git config --local user.name "grid-bot-gh"
- name: Deploy docs
run: |
mkdocs gh-deploy --force
env:
GITHUB_TOKEN: ${{ secrets.DEPLOYER_TOKEN }}