name: pages # Publishes docs/explainer.html as the repo's GitHub Pages site # (https://pacphi.github.io/agentic-kit/). The file on main is the single # source of truth — this workflow just renames it to index.html at deploy # time, so nothing is committed twice and no gh-pages branch exists. on: push: branches: [main] paths: - 'docs/explainer.html' - '.github/workflows/pages.yml' workflow_dispatch: permissions: contents: read pages: write id-token: write # One deploy at a time; let an in-flight deploy finish rather than cancel. concurrency: group: pages cancel-in-progress: false jobs: deploy: runs-on: ubuntu-latest timeout-minutes: 30 environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - uses: actions/checkout@v7 - name: Stage site (docs/explainer.html -> index.html) run: | mkdir -p _site cp docs/explainer.html _site/index.html - uses: actions/configure-pages@v6 - uses: actions/upload-pages-artifact@v5 with: path: _site - id: deployment uses: actions/deploy-pages@v5