File tree 1 file changed +56
-0
lines changed
1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Deploy Documentation
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ paths :
7
+ - ' docs/**'
8
+ workflow_dispatch :
9
+ permissions :
10
+ contents : write
11
+ pages : write
12
+ id-token : write
13
+
14
+ jobs :
15
+ build :
16
+ runs-on : ubuntu-latest
17
+
18
+ steps :
19
+ - name : Checkout code
20
+ uses : actions/checkout@v4
21
+ with :
22
+ fetch-depth : 0
23
+
24
+ - name : Install uv
25
+ uses : astral-sh/setup-uv@v5
26
+ with :
27
+ enable-cache : true
28
+
29
+ - name : Set up Python
30
+ run : uv python install
31
+
32
+ - name : Install the project
33
+ run : uv sync --all-extras --dev
34
+
35
+ - run : uv run mkdocs gh-deploy --force
36
+
37
+ deploy :
38
+ needs : build
39
+ environment :
40
+ name : github-pages
41
+ url : ${{ steps.deployment.outputs.page_url }}
42
+ runs-on : ubuntu-latest
43
+ steps :
44
+ - name : Checkout
45
+ uses : actions/checkout@v4
46
+ with :
47
+ ref : gh-pages
48
+ - name : Setup Pages
49
+ uses : actions/configure-pages@v5
50
+ - name : Upload artifact
51
+ uses : actions/upload-pages-artifact@v3
52
+ with :
53
+ path : ' .'
54
+ - name : Deploy to GitHub Pages
55
+ id : deployment
56
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments