feat: allow to specify a different repository to deploy to #38
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
GITHUB_TOKEN
does not have enough permissions since it will be pushing to another repository. Therefore, the ability to pass a token is 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: #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: