fix(search): stabilize active-ingest retries (#567) #234
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
| # Builds and publishes the GitHub Pages site on every push to main: | |
| # - the hand-built hero landing page (web/landing/) as the site root, and | |
| # - the Zensical-built docs. | |
| # `make docs-build` overlays the landing page onto site/ after the docs build, | |
| # so this workflow stays a thin build-and-deploy wrapper. | |
| name: docs-deploy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| name: build-docs | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| - name: Build site (landing + docs) | |
| run: make docs-build | |
| - name: Verify landing page and docs are present | |
| run: | | |
| set -euo pipefail | |
| for f in site/index.html site/introduction.html site/quickstart.html \ | |
| site/configuration.html site/CNAME site/assets/og.png site/assets/favicon.svg \ | |
| site/assets/monitor-desktop.png site/assets/fonts/space-grotesk-700.woff2; do | |
| test -f "$f" || { echo "::error::missing $f"; exit 1; } | |
| done | |
| grep -q "Long-term memory" site/index.html || { echo "::error::hero headline missing from site/index.html"; exit 1; } | |
| grep -q "The traces are the truth" site/index.html || { echo "::error::landing page not overlaid onto site root"; exit 1; } | |
| grep -qx "moraine.sh" site/CNAME || { echo "::error::CNAME must contain the custom domain (workflow Pages drops it otherwise)"; exit 1; } | |
| echo "verified: hero landing page + docs + CNAME built into site/" | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: site | |
| deploy: | |
| name: deploy-docs | |
| runs-on: ubuntu-latest | |
| needs: build | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deploy.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deploy | |
| uses: actions/deploy-pages@v4 |