Skip to content

more test builds

more test builds #3

Workflow file for this run

name: Build Home Documentation
on:
push:
branches: [main]
paths:
- 'documentation/**'
- '.github/workflows/publish-docs.yml'
# Manual trigger
workflow_dispatch:
jobs:
build-home:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r build/requirements.txt
- name: Build home documentation
run: python build/home.py
- name: Inject navigation header
run: python build/inject-header.py docs/home
- name: Add .nojekyll file
run: touch docs/.nojekyll
- name: Commit built documentation
run: |
git config user.name "clams-bot"
git config user.email "admin@clams.ai"
git add docs
git diff --staged --quiet || git commit -m "Build home documentation [skip ci]"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build summary
run: |
echo "## Home Documentation Build Complete :rocket:" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "Home documentation built to \`docs/home/\`." >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "**View at:** https://clams.ai/docs/" >> $GITHUB_STEP_SUMMARY