Debian Codegraph @

.github/workflows/pdoc.yml

raw symbols SCIP
1 # .github/workflows/pdoc.yml
2 name: Build pyRdfa3 pdoc
3
4 # build the documentation whenever there are new commits on main
5 on:
6 push:
7 branches:
8 - main
9 # Alternative: only build for tags.
10 # tags:
11 # - '*'
12
13 # security: restrict permissions for CI jobs.
14 permissions:
15 contents: read
16
17 jobs:
18 # Build the documentation and upload the static HTML files as an artifact.
19 build:
20 runs-on: ubuntu-latest
21 steps:
22 - uses: actions/checkout@v4
23 - uses: actions/setup-python@v5
24 with:
25 python-version: '3.12'
26
27 # ADJUST THIS: install all dependencies (including pdoc)
28 - run: pip install pdoc
29 # ADJUST THIS: build your documentation into docs/.
30 # We use a custom build script for pdoc itself, ideally you just run `pdoc -o docs/ ...` here.
31 - run: pdoc -o doc ./src/pyRdfa !./src/pyRdfa/extras
32
33 - uses: actions/upload-pages-artifact@v3
34 with:
35 path: docs/
36
37 # Deploy the artifact to GitHub pages.
38 # This is a separate job so that only actions/deploy-pages has the necessary permissions.
39 deploy:
40 needs: build
41 runs-on: ubuntu-latest
42 permissions:
43 pages: write
44 id-token: write
45 environment:
46 name: github-pages
47 url: ${{ steps.deployment.outputs.page_url }}
48 steps:
49 - id: deployment
50 uses: actions/deploy-pages@v4