diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 3853ed0..20f00e8 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -67,3 +67,20 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v5 + + # Rebuilds docs.byteveda.org/agenteval/ now instead of at the portal's next + # cron. The run id is passed because this run is still in progress here, so + # the portal cannot find it as the latest successful docs.yml run — it would + # mirror the build before this one. + # Pages is already published by the step above, so a failed ping costs + # freshness, not the release — the portal's daily cron still catches up. + # Annotate instead of failing the deploy. + - name: Notify docs portal + env: + GH_TOKEN: ${{ secrets.DOCS_DISPATCH_TOKEN }} + run: | + gh api repos/ByteVeda/byteveda.site/dispatches \ + -f event_type=tool-docs-published \ + -f "client_payload[slug]=agenteval" \ + -f "client_payload[run_id]=${{ github.run_id }}" || + echo "::error::docs portal dispatch failed — docs.byteveda.org/agenteval/ refreshes on the portal's daily cron instead"