-
Notifications
You must be signed in to change notification settings - Fork 65
36 lines (34 loc) · 887 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
# build docs from docstrings and markdown-file in folder docs
# publish them as github pages
#
#note for myself
#
# Do not forget to set git branch `gh-pages` as source for github pages.
# This branch auto-updated by `mkdocs gh-deploy`
#
name: docs
on:
push:
branches:
- main
- master
permissions:
contents: write
jobs:
deploy:
env:
PRIMARY_PYTHON_VERSION: '3.12'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PRIMARY_PYTHON_VERSION }}
- run: |
pip install uv
uv pip install ghp-import -r docs/requirements.txt --python=${{ env.PRIMARY_PYTHON_VERSION }}
- run: |
cd docs
./build-docs.sh
- run: |
ghp-import --no-jekyll --push --force site --cname="regex.sorokin.engineer"