Skip to content
GitHub PR preview

Let pull requests trigger inspectable preview deployments.

PR preview requires an explicit user-authored workflow. Appaloft makes the deploy path, preview URL, status, logs, cleanup, and recovery guidance traceable instead of silently changing repository policy.

The preview workflow must explicitly subscribe to pull_request events
Close cleanup uses a separate workflow so preview environments do not linger
When secrets are needed, reference GitHub Secrets names instead of printing values

Workflow boundary

PR preview is not an implicit default behavior. The repository declares triggers, permissions, secrets, and target deployment path.

Status feedback

On success, return preview URL, deployment id, and check status. On failure, return logs and diagnostics instead of presenting a failed preview as successful.

Cleanup policy

PR close or merge should trigger a cleanup workflow. If cleanup fails, report the manual cleanup gap clearly.

Deployment flow

1

Add preview workflow

Declare a pull_request-triggered deployment workflow in the repository.

2

Configure secrets

Store SSH key, server, token, and related credentials in GitHub Secrets.

3

Add cleanup workflow

Create a separate cleanup path for pull_request close events.

Related topics

Keep following the same deploy path.

Appaloft SEO pages are organized around real deployment tasks. Each page should lead to the next useful step, not stand alone.