-
-
Notifications
You must be signed in to change notification settings - Fork 54
66 lines (53 loc) · 1.53 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: docs
on:
- push
- workflow_dispatch
# concurrency:
# group: pages
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
# Fetch all commits and tags
# (required to generate version information on schema pages)
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install followthemoney Python package
run: make dev
- name: Build Python API docs
run: |
pip install pdoc
pdoc --no-search -o docs/public/reference/python followthemoney.{model,schema,proxy,property,types.common,namespace,graph,util,exc}
- name: Build namespace XML
run: |
mkdir -p docs/public/ns
python followthemoney/ontology.py docs/public/ns
- name: Build docs
uses: alephdata/astro-theme-docs/.github/actions/build@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
docs-path: ./docs
deploy:
if: ${{ github.ref == 'refs/heads/main' }}
needs: ["build"]
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.url }}
steps:
- name: Deploy docs
id: deployment
uses: alephdata/astro-theme-docs/.github/actions/deploy@main
with:
token: ${{ secrets.GITHUB_TOKEN }}