-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (51 loc) · 1.39 KB
/
mkdocs.yaml
File metadata and controls
61 lines (51 loc) · 1.39 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Deploy MkDocs to GitHub Pages
on:
push:
branches:
- develop
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout docs
uses: actions/checkout@v6
- name: Checkout lapidary
uses: actions/checkout@v6
with:
repository: python-lapidary/lapidary
ref: develop
path: docs/lapidary
- name: Checkout lapidary-render
uses: actions/checkout@v6
with:
repository: python-lapidary/lapidary-render
ref: develop
path: docs/lapidary-render
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Cache Poetry dependencies
uses: actions/cache@v5
with:
path: |
~/.cache/pypoetry
~/.cache/pip
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install dependencies
run: |
pip install poetry
poetry install --no-root
- name: Build site
run: poetry run mkdocs build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
cname: lapidary.dev
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'