Repository navigation
53 lines (45 loc) · 1.53 KB
/
Copy pathdocs.yml
File metadata and controls
53 lines (45 loc) · 1.53 KB
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
name: docs
# Disabled: we don't have docs to deploy yet, so this only runs when
# triggered manually. Restore `push: branches: [main]` to re-enable.
on:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Build package in Docker
run: |
docker build --target psg \
--build-arg SUITESPARSE="v$(cat GB_VERSION.txt)" \
--build-arg VERSION=99.0.0.0 \
--build-arg COMPACT=1 \
-t psg-docs .
- name: Generate docs with pdoc
run: |
docker run --rm -v "$GITHUB_WORKSPACE/site:/out" psg-docs \
bash -c "pip install --break-system-packages -q pdoc && \
pdoc --output-directory /out --no-show-source --docformat numpy \
suitesparse_graphblas.api"
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: site/
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write # to deploy to GitHub Pages
id-token: write # to prove the deployment comes from this workflow
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
id: deployment