Skip to content

Commit 2ccec60

Browse files
committed
Update docs workflow for gh-pages branch deployment
- Switch from GitHub Pages action to peaceiris/actions-gh-pages - Add CNAME file for custom domain codeoptix.superagentic.ai - Simplify workflow to single deploy job
1 parent 51da5df commit 2ccec60

File tree

2 files changed

+12
-31
lines changed

2 files changed

+12
-31
lines changed

.github/workflows/docs.yml

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,21 @@ on:
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

2317
concurrency:
2418
group: ${{ github.workflow }}-${{ github.ref }}
2519
cancel-in-progress: true
2620

2721
jobs:
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
@@ -47,27 +45,9 @@ jobs:
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

docs/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
codeoptix.superagentic.ai

0 commit comments

Comments
 (0)