-
-
Notifications
You must be signed in to change notification settings - Fork 244
54 lines (43 loc) · 1.3 KB
/
mkdocs-deploy.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
45
46
47
48
49
50
51
52
53
54
name: Doc pages
on:
push:
paths:
- "docs/**"
- "mkdocs.yml"
- ".github/workflows/mkdocs-deploy.yml"
branches:
- main
- simpler_doc_linking
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11 # Replace with your desired Python version
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install Poetry dependencies
run: |
poetry --version
echo "$HOME/.local/bin" >> $GITHUB_PATH
python -m pip install --upgrade pip
poetry install --only docs --no-root --sync
- name: Build MkDocs documentation
# change this to -b gh-pages when ready to make docs public
run: poetry run mkdocs gh-deploy -b gh-pages --force
# - name: Deploy to GitHub Pages
# uses: peaceiris/actions-gh-pages@v3
# with:
# deploy_key: ${{ secrets.GITHUB_TOKEN }}
# publish_branch: gh-pages
# publish_dir: ./site