Skip to content

CI/CD Recipes

Deploy previews from your existing CI/CD workflows using the PreviewProof CLI.

.github/workflows/preview.yml
name: Deploy Preview
on:
pull_request:
types: [opened, synchronize]
jobs:
preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deploy preview
run: |
npx previewproof deploy
env:
PREVIEWPROOF_TOKEN: ${{ secrets.PREVIEWPROOF_TOKEN }}

More CI/CD recipes coming soon — GitLab CI, Bitbucket Pipelines, and others.