Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 29 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,23 @@ on:
- "GOVERNANCE.md"
- "ROADMAP.md"
- "LIMITATIONS.md"
- "CNAME"
workflow_dispatch:

permissions:
contents: write

concurrency:
group: docs-deploy
cancel-in-progress: false

jobs:
deploy:
name: Build and deploy docs
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -38,5 +43,27 @@ jobs:
pip install -r requirements-docs.txt
pip install -e ".[dev]"

- name: Configure git for gh-deploy
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

- name: Assemble docs build directory
run: |
BUILD=.docs_build
mkdir -p $BUILD

if [ -d docs ]; then cp -r docs $BUILD/docs; fi

for fname in README.md CHANGELOG.md CONTRIBUTING.md GOVERNANCE.md ROADMAP.md LIMITATIONS.md CNAME; do
if [ -f "$fname" ]; then cp "$fname" "$BUILD/$fname"; fi
done

echo "Build dir contains $(find $BUILD -type f | wc -l) files"

- name: Generate build config
run: |
sed 's|^docs_dir: \.$|docs_dir: .docs_build|' mkdocs.yml > .mkdocs_build.yml

- name: Build and deploy to GitHub Pages
run: mkdocs gh-deploy --force --clean
run: mkdocs gh-deploy --force --clean --config-file .mkdocs_build.yml
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cmcp.agentrust-io.com
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
site_name: cMCP
site_description: Confidential MCP Runtime — hardware-attested policy enforcement for MCP tool calls
site_url: https://agentrust-io.github.io/cmcp
site_url: https://cmcp.agentrust-io.com
repo_url: https://github.com/agentrust-io/cmcp
repo_name: agentrust-io/cmcp
edit_uri: edit/main/
Expand Down
Loading