Skip to content

Document the GitHub Actions push-to-deploy flow for Composer apps - #8173

Merged
ankur-arch merged 2 commits into
mainfrom
docs/composer-github-actions-flow
Aug 25, 2026
Merged

Document the GitHub Actions push-to-deploy flow for Composer apps#8173
ankur-arch merged 2 commits into
mainfrom
docs/composer-github-actions-flow

Conversation

@kristof-siket

@kristof-siket kristof-siket commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Summary

The GitHub integration docs described platform-side webhook builds ("Push → builds the pushed commit"). That is not how push-to-deploy works: deploys run in the repository's own GitHub Actions through prisma/cloud-deploy-action, while the repository connection provides the OIDC credential exchange and the branch lifecycle automation (platform branch creation, preview teardown on branch delete). This PR documents the real flow, based on an end-to-end walkthrough on 2026-08-25 with prisma 8.0.0-rc.9.

  • New: compute/deploy-on-push.mdx. A guide that takes a locally deployed Composer app (the full-stack tutorial's end state) to push-to-deploy: link, git connect, add the workflow, then production on default-branch pushes, an isolated preview stage per branch, and teardown on branch delete. Added to the Compute nav under Integrations.
  • Rewritten: compute/github.mdx. Now describes what the connection does (credentials and branch lifecycle) and makes the two entry paths explicit: the Console opens a PR that adds the workflow, the CLI registers the connection only. Corrects the claim that git connect --no-interactive prints the install URL; it fails with CLI.INTERACTION_REQUIRED.
  • Aligned: cli/git.mdx, compute/branching.mdx, compute/deployments.mdx, compute/index.mdx, composer/deploying.mdx (CI section now points GitHub users at the action first), and the full-stack tutorial's "Deploy on push" next step.

Open questions

  • Action version. Released action tags (up to v1.5.0) call the removed prisma composer commands and fail with CLI.UNKNOWN_COMMAND against prisma 8.0.0-rc.8 or later. The fix is Fix the action against the current prisma CLI (top-level deploy, 8.0.0-rc.9) cloud-deploy-action#12 (draft as of writing). The guide targets the fixed behavior and carries an inline failure note; once the fixed release is out, the note can name the minimum version.
  • The action's mode: destroy teardown job. The unified CLI has no destroy command, so that job fails, and the platform's branch automation already tears previews down. The guide shows a push-only workflow. Should mode: destroy be documented once it works, or should teardown stay platform-side?
  • compute/getting-started.mdx still describes platform builds with framework detection. Left untouched; it may describe the non-Composer, compute-config path. Worth deciding whether that flow still exists.
  • Check runs. The old page claimed each webhook deploy posts a "Prisma Compute Deploy" check run. Dropped, since the webhook no longer deploys. If the Actions path still posts one, it can be re-added with the right attribution.
Validation
  • Verified end to end on 2026-08-25: production deploy on push, isolated preview stage for a feature branch with a branch-assigned database, teardown on branch delete, OIDC auth with no repo secrets, and green-CI skips (skipped-no-credential) for unconnected repos and forks.
  • pnpm lint:links, pnpm lint:agent-ready, and cspell pass on the touched files.
  • The new page carries url: frontmatter and follows the section's frontmatter and code-fence conventions; prose follows .claude/skills/docs-writer.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Added documentation for deploying Composer apps on GitHub push.
    • Documented production deployments, branch-based preview environments, OIDC authentication, and automatic preview cleanup.
    • Added the deploy-on-push guide to Compute navigation.
  • Documentation

    • Updated GitHub, CLI, branching, deployment, and tutorial guidance to reflect GitHub Actions workflows and branch automation.
    • Clarified setup requirements, troubleshooting, disconnect behavior, and deployment options for different CI systems.

@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview Aug 25, 2026 2:07pm
docs Ready Ready Preview Aug 25, 2026 2:07pm
eclipse Ready Ready Preview Aug 25, 2026 2:07pm
site Ready Ready Preview Aug 25, 2026 2:07pm

Request Review

@coderabbitai

coderabbitai Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: a243a8dd-a7ed-4524-a04c-16ed75306113

📥 Commits

Reviewing files that changed from the base of the PR and between 71b34b7 and 05ca829.

📒 Files selected for processing (9)
  • apps/docs/content/docs/(index)/full-stack-tutorial.mdx
  • apps/docs/content/docs/cli/git.mdx
  • apps/docs/content/docs/composer/deploying.mdx
  • apps/docs/content/docs/compute/branching.mdx
  • apps/docs/content/docs/compute/deploy-on-push.mdx
  • apps/docs/content/docs/compute/deployments.mdx
  • apps/docs/content/docs/compute/github.mdx
  • apps/docs/content/docs/compute/index.mdx
  • apps/docs/content/docs/compute/meta.json

Walkthrough

The documentation adds a deploy-on-push guide for GitHub Actions, OIDC authentication, production deployments, branch previews, and preview cleanup. Existing GitHub, CLI, Compute, Composer, and tutorial pages now reference this workflow.

Changes

Deploy on push documentation

Layer / File(s) Summary
Connection and branch lifecycle contract
apps/docs/content/docs/compute/github.mdx, apps/docs/content/docs/cli/git.mdx, apps/docs/content/docs/compute/branching.mdx
The documentation defines OIDC credential exchange, interactive installation, workflow-owned deployments, branch synchronization, preview exclusions, and cleanup behavior.
Deploy-on-push workflow guide
apps/docs/content/docs/compute/deploy-on-push.mdx, apps/docs/content/docs/composer/deploying.mdx
The new guide documents repository linking, GitHub Actions setup, production and preview deployments, failure handling, preview teardown, and the recommended deployment action.
Documentation navigation and cross-links
apps/docs/content/docs/compute/index.mdx, apps/docs/content/docs/compute/deployments.mdx, apps/docs/content/docs/compute/branching.mdx, apps/docs/content/docs/(index)/full-stack-tutorial.mdx, apps/docs/content/docs/compute/meta.json
Related pages and navigation now link to the deploy-on-push guide and describe GitHub Actions deployment behavior.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Suggested reviewers: ankur-arch

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/composer-github-actions-flow

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🍈 Lychee Link Check Report

112 links: ✅ 16 OK | 🚫 0 errors | 🔀 8 redirects | 👻 96 excluded

✅ All links are working!


Full Statistics Table
Status Count
✅ Successful 16
🔀 Redirected 8
👻 Excluded 96
🚫 Errors 0
⛔ Unsupported 0
⏳ Timeouts 0
❓ Unknown 0

kristof-siket and others added 2 commits August 25, 2026 16:03
The GitHub integration page described platform-side webhook builds
("push builds the pushed commit"), which is not how deploys work:
deploys run in the repository's own GitHub Actions through
prisma/cloud-deploy-action, while the connection contributes the OIDC
credential exchange and the branch lifecycle automation (preview
teardown on branch delete).

- Add compute/deploy-on-push.mdx: a walkthrough from a locally deployed
  Composer app to push-to-deploy with per-branch preview stages,
  validated end to end against a real pipeline on 2026-08-25.
- Rewrite compute/github.mdx around what the connection actually does,
  including the two entry paths (Console adds the workflow via PR, the
  CLI path does not) and the interactive-only git connect.
- Align branching, deployments, index, cli/v8/git, composer/deploying,
  and the full-stack tutorial's next step with the real flow.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Apply the docs-writer skill's conventions to the new and rewritten
pages: remove em dashes, contrast slogans, coined phrasings, and
stacked absolutes; move failure notes inline with the step where the
reader hits them instead of a separate troubleshooting section; trim
the next-steps lists.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@kristof-siket
kristof-siket force-pushed the docs/composer-github-actions-flow branch from 698855e to 05ca829 Compare August 25, 2026 14:04
@kristof-siket
kristof-siket marked this pull request as ready for review August 25, 2026 14:15
@ankur-arch
ankur-arch merged commit ab2c7b9 into main Aug 25, 2026
16 of 17 checks passed
@ankur-arch
ankur-arch deleted the docs/composer-github-actions-flow branch August 25, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants