ci: add Deploy Static Docs workflow (docs-static-build container → CF Pages)#6384
Merged
Merged
Conversation
… Pages) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Contributor
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.
Summary
Adds
.github/workflows/deploy-static-docs.yml, which renders the published docs site to static HTML and uploads it to Cloudflare Pages using the publicfernenterprise/docs-static-buildcontainer (added in fern-platform).It runs after the existing
Publish Docsworkflow completes successfully — so the ledger manifest + CAS blobs the container reads from S3 are already fresh — and is also manually runnable viaworkflow_dispatch(with animage_taginput, defaultlatest).The container's three logical inputs. The docs URL, AWS region, and prod ledger bucket names are hardcoded; only the credentials come from GitHub secrets:
Job shape:
Secrets are forwarded to the container by name (
docker run -e VAR, values from the stepenv:) rather than interpolated into the command line, and the job requests no token permissions.Required repo secrets (configure before the first run):
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,CLOUDFLARE_API_TOKEN,CLOUDFLARE_ACCOUNT_ID,CF_PAGES_PROJECT(optional:CF_PAGES_BRANCH).FERN_TOKENalready exists.Testing
zizmor --offlinepasses (theworkflow_rundangerous-triggers finding is suppressed inline with a safety justification: no untrusted checkout,permissions: {}, only runs the public container).Link to Devin session: https://app.devin.ai/sessions/91dba5ee2dda4ff198a3cc4e3b23fa51
Requested by: @thesandlord