File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ name: Build Docs
3
3
on :
4
4
pull_request :
5
5
push :
6
- branches : [main]
6
+ branches : [main, test ]
7
7
tags :
8
8
- ' *'
9
9
10
10
jobs :
11
- build-deploy- docs :
11
+ build-docs :
12
12
name : Docs
13
13
runs-on : ubuntu-latest
14
14
steps :
32
32
- name : Build Docs
33
33
run : |
34
34
make -C docs
35
+
36
+ - name : Upload Pages Artifact
37
+ uses : actions/upload-pages-artifact@v3
38
+ with :
39
+ path : docs/_build/html
40
+
41
+ deploy :
42
+ needs : build-docs
43
+
44
+ permissions :
45
+ pages : write
46
+ id-token : write
47
+
48
+ environment :
49
+ name : github-pages
50
+ url : ${{ steps.deployment.outputs.page_url }}
51
+
52
+ runs-on : ubuntu-latest
53
+ steps :
54
+ - name : Deploy to GitHub Pages
55
+ if : github.ref == 'refs/heads/main'
56
+ id : deployment
57
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments