rossjrw / pr-preview-action

GitHub Action that deploys a pull request preview to GitHub Pages, similar to Vercel and Netlify, and cleans up after itself.
https://github.com/marketplace/actions/deploy-pr-preview
MIT License
255 stars 39 forks source link

feat: allow to specify a different repository to deploy to #38

Closed MH4GF closed 1 year ago

MH4GF commented 1 year ago

Resolves #41

Description

Thank you for creating this fantastic action! I've added a feature to deploy previews to GitHub Pages of another repository. The following inputs have been added:

These inputs are passed to JamesIves/github-pages-deploy-action.

Also, the pagesurl can be changed to the repository to deploy to.

Motivation

On the site I manage, I deploy to GitHub Pages using the beta version of GitHub Actions. As a result, I'm facing the same problem as in this issue: https://github.com/rossjrw/pr-preview-action/issues/21, and I would like to deploy the preview environment to another repository as a workaround.

Verification

I have prepared the following two repositories and verified the operation:

rossjrw commented 1 year ago

Looks good to me! I've made some documentation changes. Thanks for the contribution @MH4GF!

rossjrw commented 1 year ago

Released in v1.4.0 (https://github.com/rossjrw/pr-preview-action/releases/tag/v1.4.0)