-
Notifications
You must be signed in to change notification settings - Fork 153
48 lines (40 loc) · 1004 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
37
38
39
40
41
42
43
44
45
46
47
48
name: Docs
on:
push:
branches:
- main
workflow_dispatch:
workflow_call:
jobs:
build-and-publish:
name: Build and Publish Docs
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
env:
POETRY_VIRTUALENVS_CREATE: false
steps:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: Gr1N/setup-poetry@v9
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Install Dependencies
run: |
poetry self add "poetry-dynamic-versioning[plugin]"
poetry install --no-root --only=docs
- name: Build Package
run: poetry build
- name: Install Package
run: pip install dist/*.whl
- name: Build & Publish Docs
uses: sphinx-notes/pages@v3
with:
checkout: false