Some checks failed
website / build (push) Has been cancelled
Changed the artifact upload step in the pdoc workflow to use GitHub's official `actions/upload-artifact@v3` instead of `forgejo/upload-artifact@v4`. This update ensures compatibility and reliability by leveraging the native GitHub Action support and potentially offers better integration with the GitHub ecosystem.
40 lines
859 B
YAML
40 lines
859 B
YAML
name: website
|
|
|
|
# build the documentation whenever there are new commits on main
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
# Alternative: only build for tags.
|
|
# tags:
|
|
# - '*'
|
|
workflow_dispatch:
|
|
## security: restrict permissions for CI jobs.
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
# Build the documentation and upload the static HTML files as an artifact.
|
|
build:
|
|
container:
|
|
image: node:20-bookworm
|
|
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
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
path: docs
|
|
|