endbug/Pages Preview

Deploy GitHub Pages previews for your branches and PRs

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Mar 17, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: endbug/pages-preview@3e2aef8b39eb77522c278172e94c8628b2b58bcc # v1.1.2

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
build_dirThe directory in which the website has been built, in the a/b/c formatyes
preview_base_urlThe GitHub Pages base URL of the preview repo (e.g. https://octocat.github.io/preview)yes
preview_repoThe repository to push previews to, in the Owner/Name formatyes
preview_tokenThe token to access the preview repoyes
deployment_envThe name of the environment to use for the deploymentnopreview
deploymentsWhether to use the deployments APInotrue
git_author_nameThe name of the author of the resulting commitno${{ github.actor }}
git_author_emailThe email of the author of the resulting commitno${{ github.actor }}@users.noreply.github.com
git_committer_nameThe committer of the resulting commitno
git_committer_emailThe email of the committer of the resulting commitno
pr_commentWhether to comment on PRsnotrue
preview_branchThe name of the branch that hosts the previewsnogh-pages
preview_workflow_file_nameThe name of the workflow file that contains the comment workflow in the preview repo. If you use my template, the name is already 'preview.yml'nopreview.yml

no outputs