arteffectDocs
PR previews

Using arteffect

PR previews

A GitHub Action that draws every exhibit a pull request changes, before and after, with a visual diff.

A GitHub Action in the arteffect repo draws every exhibit a pull request changes, before and after, with a visual diff, in one comment that is updated on every push.

# .github/workflows/exhibit-preview.yml
name: Exhibit preview
on: pull_request
permissions:
  contents: write       # preview images are committed to the arteffect-previews branch
  pull-requests: write  # to post the comment
jobs:
  preview:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - uses: chasetherapper/arteffect@main
Input Default
github-token The workflow’s token
preview-branch arteffect-previews
width, height 1280, 800
browser The runner’s Chrome (google-chrome on GitHub-hosted Ubuntu)

Pull requests from forks get no preview.