-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to specify GitHub pages directory #80
Comments
Closing this issue as a duplicate of #42. |
@RedSparr0w I wouldn't set The preview action will put a copy of the entire contents of your repo into the preview branch. In this case you've got Next person to make a pull request branches from Let's say PR 123 is a little out of date and merges In my projects, a rule I stick to is that the main branch should only ever contain work authored by humans. Previews are technically computer-generated given that they're just copies of human-written work. Deploying from I would suggest adopting the 'gh-pages' workflow that my preview action assumes as a default. By deploying from the root directory of the You should still keep your deployment in |
Oh sorry, some how missed #42 😅 All of our code and PRs go to our Or in the case of the PR previews, it's just copying the Our Unfortunately it has to be on the |
Currently as far as I can tell, you are not able to specify the directory you are using to serve your GitHub pages project.
This means when the preview URL is generated it still includes the pages directory pointing to a broken link.
For example, my repo uses
docs/
as the GitHub pages base directory, with the following config I get this output:Output URL:
https://example.site/docs/preview/pr-123
Expected URL:
https://example.site/preview/pr-123
The text was updated successfully, but these errors were encountered: