Repository navigation
Rebuild smartloop.ai when a release is published - #288
Merged
Merged
Conversation
The site bakes the latest published release into its build and listens for a release-published repository_dispatch, but nothing sent one, so the version on smartloop.ai lagged until the daily rebuild. Dispatch it right after the publish step, using a WEBSITE_DISPATCH_TOKEN PAT (GITHUB_TOKEN can't reach another repo). A missing token or failed dispatch only warns.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After
publish-releasepromotes the draft to published, send arelease-publishedrepository_dispatch tosmartloop-ai/smartloop.ai. Itsdeploy-pages.ymlalready listens for that event and rebuilds the site with the latest release baked in, so the version shown on smartloop.ai updates right away instead of at the next daily cron. Today the site shows v1.0.69 while 1.0.70 is out.Setup required: add a repo secret
WEBSITE_DISPATCH_TOKEN: a fine-grained PAT scoped tosmartloop-ai/smartloop.aiwith Contents: Read and write.GITHUB_TOKENcan't dispatch to another repo. Until the secret is set, the step logs a warning and skips. A failed dispatch also only warns, because the release is already live by then.🤖 Generated with Claude Code