The other thing that is useful about this pattern it means you can deploy files to GitHub Pages that don't exist at all in your repository. I like that for frequently changing data where it would be wasteful to record all prior versions, or that duplicates data already in the repository.
My https://tools.simonwillison.net/colophon page is a good example of that.