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
33on :
44 pull_request :
55 push :
6- branches : [main]
6+ branches : [main, test ]
77 tags :
88 - ' *'
99
1010jobs :
11- build-deploy- docs :
11+ build-docs :
1212 name : Docs
1313 runs-on : ubuntu-latest
1414 steps :
3232 - name : Build Docs
3333 run : |
3434 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