-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (42 loc) · 1.13 KB
/
docs-publish.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
42
43
44
name: Publish Docs
on:
push:
branches:
- main
workflow_dispatch:
inputs:
directory:
description: 'Build docs'
default: 'build it now'
required: false
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:
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 🚀
uses: JamesIves/[email protected]
with:
folder: site
clean-exclude: pr-preview/
force: false