Add GitHub Actions workflow for deploying PR previews #125
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
NBIS/Training-Tech-shorts!125
Loading…
Reference in a new issue
No description provided.
Delete branch "pr-preview"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR adds a GHA workflow for automatically deploying PR previews using https://github.com/marketplace/actions/deploy-pr-preview
Is this publishing the preview to the
gh-pagesbranch? That's currently where the site is hosted from, so wouldn't that mean the public would always see the latest preview?Yes, it is, but to the
pr-previewpath (see https://github.com/NBISweden/Training-Tech-shorts/pull/125#issuecomment-3385072324, for example). Still public, but not linked from the root deployment. The Training-Tech-shorts repo is public, so I personally wouldn't see an issue with that.The action says it doesn't work from forks. Is there a solution for that?
Yes, I mentioned this limitation in https://github.com/NBISweden/Training-Tech-shorts/discussions/123#discussion-9003338. There is no solution as of now, as far as I can tell, but they are working on it. IMO, still an improvement to have this. If people want to use this feature, they need to work in the repo; PRs from forks still work, just without the preview feature then.
Agreed. It's better to have some preview if possible. Since it's in a subdirectory that's better. I was under the initial impression that it the latest preview might end up being the actual site, but that's not the case.
I'll squash merge this.