feat(cli,nano): expand plan-review body and reframe planner as soluti… #109
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: Deploy GitHub Pages | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'docs/**' | |
| - 'Gemfile' | |
| - 'Gemfile.lock' | |
| - '.ruby-version' | |
| - '.github/workflows/pages.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.3.6' | |
| bundler-cache: true | |
| - name: Build with Jekyll | |
| run: | | |
| bundle exec jekyll build -s docs -d _site | |
| touch _site/.nojekyll | |
| - name: Verify build output | |
| run: | | |
| test -f _site/index.html | |
| test -f _site/wiki/index.html | |
| test -f _site/faq/index.html | |
| test -f _site/changelog/index.html | |
| test -f _site/wiki/api-reference/index.html | |
| test -f _site/.nojekyll | |
| test ! -e _site/specs | |
| test ! -e _site/drafts | |
| echo "Pages artifact verification passed ($(du -sh _site | cut -f1))" | |
| # Top-level nav pages must appear as siblings of Wiki (not nested under it) | |
| python3 - <<'PY' | |
| from pathlib import Path | |
| html = Path("_site/index.html").read_text() | |
| for label in ("Home", "Wiki", "FAQ", "CHANGELOG", "API Reference"): | |
| assert label in html, f"missing nav label: {label}" | |
| print("Nav labels present on Home") | |
| PY | |
| - name: Deploy to gh-pages branch | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages | |
| folder: _site | |
| clean: true | |
| single-commit: true | |
| commit-message: "deploy: GitHub Pages from ${{ github.sha }}" |