File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ jobs :
2
+ build :
3
+ runs-on : ubuntu-latest
4
+ steps :
5
+ - name : Checkout repository
6
+ uses : actions/checkout@v4
7
+ - name : Install uv
8
+ uses : astral-sh/setup-uv@v4
9
+ - name : Set up Python
10
+ run : uv python install 3.11
11
+ - name : Set up virtual environment
12
+ run : uv venv --python 3.11
13
+ - name : Activate virtual environment
14
+ run : source .venv/bin/activate
15
+ - name : Load development dependencies
16
+ run : uv sync --dev
17
+ - name : Generate documentation
18
+ run : uv run pdoc src/**/*.py --logo /fastapi-csrf-protect/protect.svg --output docs
19
+ - name : Copy public domain art from static directory to docs
20
+ run : cp static/protect.svg docs/protect.svg
21
+ - uses : actions/upload-pages-artifact@v3
22
+ with :
23
+ path : docs/
24
+
25
+ deploy :
26
+ needs : build
27
+ runs-on : ubuntu-latest
28
+ permissions :
29
+ pages : write
30
+ id-token : write
31
+ environment :
32
+ name : github-pages
33
+ url : ${{ steps.deployment.outputs.page_url }}
34
+ steps :
35
+ - id : deployment
36
+ uses : actions/deploy-pages@v4
37
+
38
+ name : Convert docstrings to Pdoc pages
39
+
40
+ on :
41
+ push :
42
+ branches :
43
+ - master
44
+
45
+ permissions :
46
+ contents : read
Original file line number Diff line number Diff line change 8
8
[ ![ Languages] ( https://img.shields.io/github/languages/count/aekasitt/fastapi-csrf-protect )] ( . )
9
9
[ ![ Size] ( https://img.shields.io/github/repo-size/aekasitt/fastapi-csrf-protect )] ( . )
10
10
[ ![ Last commit] ( https://img.shields.io/github/last-commit/aekasitt/fastapi-csrf-protect/master )] ( . )
11
+ [](https://aekasitt.github.io/fastapi-csrf-protect)
11
12
12
13
[ ![ Protect Banner] ( static/protect-banner.svg )] ( https://github.com/aekasitt/fastapi-csrf-protect/blob/master/static/protect-banner.svg )
13
14
You can’t perform that action at this time.
0 commit comments