Back to 🚢 DevOps & Deployment

Setup Preview Deployments

CI/CDGitHub ActionsDeployment
---
description: Auto-deploy PRs
---

1. **Create GitHub Action**:
name: Preview
on:
pull_request:
types: [opened, synchronize]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm ci
- run: npm run build
- uses: amondnet/vercel-action@v25


2. **Comment PR**:
- Add deployment URL to PR comments.

3. **Pro Tips**:
- Add E2E tests.
- Clean up old previews.
By Antigravity Team

How to Use This Workflow

Option A: Project-Specific (Recommended)

  1. Click "Download" above
  2. In your project, create the directory: .agent/workflows/
  3. Save the file as setup-github-actions-preview-deployments.md
  4. In Antigravity, type /setup_github_actions_preview_deployments or just describe what you want to do

Learn more about workflows →

Related Workflows

Recommended Rules

View more rules →

Recommended MCP Servers

View more MCP servers →

Take It Further

Maximize your productivity with these powerful resources

📋

Define Your Standards

Set up coding standards to ensure this workflow produces consistent, high-quality results.

Browse Rules Library
📖

Master Workflows

Learn how to create custom workflows, use Turbo Mode, and build your automation library.

Complete Guide