plankapy/.forgejo/workflows/pdoc.yml

41 lines
880 B
YAML
Raw Normal View History

2023-05-01 18:42:16 +00:00
name: website
# build the documentation whenever there are new commits on main
2023-05-01 18:59:19 +00:00
on:
push:
branches:
- main
# Alternative: only build for tags.
# tags:
# - '*'
workflow_dispatch:
2023-05-01 18:50:15 +00:00
## security: restrict permissions for CI jobs.
2023-05-01 18:42:16 +00:00
permissions:
contents: read
jobs:
# Build the documentation and upload the static HTML files as an artifact.
build:
container:
image: node:20-bookworm
2023-05-01 18:42:16 +00:00
steps:
- name: Install dependencies
run: |
apt update
apt install -y python3 python3-pip git
- name: Git pull
uses: actions/checkout@v4
- name: Install Python dependencies
run: |
pip install pdoc . --break-system-packages
- run: python3 -m pdoc -d markdown -o docs plankapy
2023-05-01 18:42:16 +00:00
- uses: actions/upload-artifact@v3
2023-05-01 18:42:16 +00:00
with:
name: docs
path: docs
2023-05-01 18:42:16 +00:00