-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.02 KB
/
dev-docs.yml
File metadata and controls
44 lines (38 loc) · 1.02 KB
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 (dev)
permissions:
contents: write
on:
workflow_dispatch:
inputs:
name:
description: "Deploy docs (dev)"
push:
branches:
- "master"
paths:
- "luduvo/**"
- "docs/**"
- ".github/workflows/dev-docs.yml"
- "mkdocs.yml"
jobs:
mkdocs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10.9"
- name: Install dependencies
run: |
pip install mkdocs-material mkdocs-section-index mkdocstrings mkdocstrings-python mkdocs-literate-nav mkdocs-gen-files mkdocs-autorefs mike
- name: Configure Git user
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Deploy docs
run: |
mike deploy dev --push