Skip to content

Commit 8b7b3c1

Browse files
committed
Test initial docs workflow
1 parent 2de9432 commit 8b7b3c1

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/docs.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
workflow_call:
9+
10+
jobs:
11+
build-and-publish:
12+
name: Build and Publish Docs
13+
runs-on: ubuntu-latest
14+
permissions:
15+
pages: write
16+
id-token: write
17+
environment:
18+
name: github-pages
19+
env:
20+
POETRY_VIRTUALENVS_CREATE: false
21+
steps:
22+
- uses: actions/setup-python@v5
23+
with:
24+
python-version: "3.12"
25+
26+
- uses: Gr1N/setup-poetry@v9
27+
28+
- uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 0
31+
fetch-tags: true
32+
33+
- name: Install Dependencies
34+
run: |
35+
poetry self add "poetry-dynamic-versioning[plugin]"
36+
poetry install --no-root --only=docs
37+
38+
- name: Build Package
39+
run: poetry build
40+
41+
- name: Install Package
42+
run: pip install dist/*.whl
43+
44+
- name: Build & Publish Docs
45+
uses: sphinx-notes/pages@v3

0 commit comments

Comments
 (0)