-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (38 loc) · 1.05 KB
/
docs-preview.yaml
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
name: Deploy PR Docs previews
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
concurrency: preview-${{ github.ref }}
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: "3.12"
- uses: pre-commit/[email protected]
deploy-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: "3.12"
- name: Setup Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.8.3
- name: Install Packages
run: poetry install --with docs,tutorial
- run: git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Build Docs
run: poetry run mkdocs build
- name: Deploy preview
uses: rossjrw/[email protected]
with:
source-dir: ./site/