File tree Expand file tree Collapse file tree 2 files changed +12
-31
lines changed
Expand file tree Collapse file tree 2 files changed +12
-31
lines changed Original file line number Diff line number Diff line change 1313 - ' docs/**'
1414 - ' mkdocs.yml'
1515 workflow_dispatch :
16- inputs :
17- deploy :
18- description : ' Deploy to GitHub Pages'
19- required : false
20- default : ' false'
21- type : boolean
2216
2317concurrency :
2418 group : ${{ github.workflow }}-${{ github.ref }}
2519 cancel-in-progress : true
2620
2721jobs :
28- build :
29- name : Build Documentation
22+ deploy :
23+ name : Deploy Documentation
3024 runs-on : ubuntu-latest
25+ if : github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
26+
3127 steps :
3228 - uses : actions/checkout@v4
29+ with :
30+ fetch-depth : 0
3331
3432 - name : Set up Python
3533 uses : actions/setup-python@v5
4745 - name : Build documentation
4846 run : uv run mkdocs build --strict
4947
50- - name : Upload artifact
51- uses : actions/upload-pages-artifact@v3
52- with :
53- path : site/
54-
55- # Deploy job - only runs on main branch push or manual trigger with deploy=true
56- deploy :
57- name : Deploy to GitHub Pages
58- needs : build
59- if : github.ref == 'refs/heads/main' && (github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.deploy == true))
60- runs-on : ubuntu-latest
61-
62- permissions :
63- pages : write
64- id-token : write
65-
66- environment :
67- name : github-pages
68- url : ${{ steps.deployment.outputs.page_url }}
69-
70- steps :
7148 - name : Deploy to GitHub Pages
72- id : deployment
73- uses : actions/deploy-pages@v4
49+ uses : peaceiris/actions-gh-pages@v4
50+ with :
51+ github_token : ${{ secrets.GITHUB_TOKEN }}
52+ publish_dir : ./site
53+ cname : codeoptix.superagentic.ai
Original file line number Diff line number Diff line change 1+ codeoptix.superagentic.ai
You can’t perform that action at this time.
0 commit comments