plankapy/.forgejo/workflows/pdoc.yml
Kumi cb84abacac
Some checks failed
website / build (push) Has been cancelled
feat: switch to GitHub's artifact upload action
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.
2024-04-25 09:05:31 +02:00

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