-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (42 loc) · 1 KB
/
docs.yml
File metadata and controls
44 lines (42 loc) · 1 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
---
name: GenDocs
on:
push:
branches:
- master
permissions:
contents: read
jobs:
gen_docs:
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- run: sudo apt-get update
- run: sudo apt-get install libcrypt-dev
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.13"
check-latest: true
- name: Install pdoc
run: pip install pdoc
- name: Build and install wheel
run: pip install .
- name: Generate docs
run: pdoc --no-show-source -o docs `python3 -c "import pyxcrypt;print(pyxcrypt.__path__[0])"`
- uses: actions/upload-pages-artifact@v3
with:
path: docs/
deploy:
needs: gen_docs
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4