. #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: sphinx | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - 'agentle/**' | |
| - 'docs/**' | |
| workflow_dispatch: | |
| permissions: | |
| pages: write | |
| id-token: write | |
| contents: write | |
| jobs: | |
| build-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.13 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Install PIP | |
| run: pip install --root-user-action=ignore --upgrade pip | |
| - name: Install project and dependencies | |
| run: | | |
| pip install -e . | |
| pip install sphinx furo snowballstemmer | |
| - name: Build Docs | |
| run: make docs | |
| - name: Prepare Deployment Directory | |
| run: | | |
| mkdir -p deploy_output/docs | |
| cp docs/index.html deploy_output/index.html | |
| cp -r docs/logo.png deploy_output/ | |
| cp -r docs/build/html/* deploy_output/docs | |
| touch deploy_output/.nojekyll | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| if: github.ref == 'refs/heads/master' | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./deploy_output | |
| enable_jekyll: false |