Skip to content

Commit 7e4db8b

Browse files
committed
Automatically deploy extensive documentation
1 parent afa45fe commit 7e4db8b

File tree

5 files changed

+62
-2
lines changed

5 files changed

+62
-2
lines changed

.github/workflows/deploy_pages.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: deploy_pages
2+
3+
on:
4+
workflow_run:
5+
workflows: [documentation]
6+
types: [completed]
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-24.04
15+
environment:
16+
name: github-pages
17+
url: ${{ steps.deployment.outputs.page_url }}
18+
permissions:
19+
pages: write
20+
id-token: write
21+
if: ${{ github.event.workflow_run.conclusion == 'success'}}
22+
steps:
23+
- uses: dawidd6/action-download-artifact@v11
24+
with:
25+
workflow: documentation.yml
26+
name: docs
27+
path: ${{ github.workspace }}/docs
28+
branch: ${{ github.event.repository.default_branch }}
29+
- uses: actions/upload-pages-artifact@v4
30+
id: deployment
31+
with:
32+
path: ${{ github.workspace }}
33+
retention-days: 1
34+
- uses: actions/deploy-pages@v4
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: documentation
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.11.4"
17+
- name: Install dependencies
18+
run: pip install -e .
19+
- name: Create documentation
20+
run: pdoc --html biomesh --html-dir docs --force
21+
- uses: actions/upload-artifact@v4
22+
with:
23+
name: documentation
24+
path: docs/
25+
if-no-files-found: error

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ venv
22
.pytest_cache
33
__pycache__
44
*.pyc
5+
docs/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pip install gmsh
1919
## :book: Usage
2020

2121
`biomesh` is composed of multiple utilities for working with complex biomechanical geometries. Below
22-
are some common workflows
22+
are some common workflows. An extensive documentation can be found [here](https://lnm-tum.github.io/biomesh/docs).
2323

2424
### Generate a mesh from colored STL files
2525

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "biomesh"
7-
version = "0.6.0"
7+
version = "0.6.1"
88
authors = [
99
{ name="The biomesh Authors" },
1010
]

0 commit comments

Comments
 (0)