Answer the question
In order to leave comments, you need to log in
How to use files from (dist) folder on master branch in gh-pages branch?
Let's say I pushed the project and the dist folder to master, how can I take a file from master (from the dist folder) and send them to gh-pages (that is, the files themselves will appear on gh-pages from the dist folder).
Right now I'm doing this: https://gist.github.com/cobyism/4730490
Answer the question
In order to leave comments, you need to log in
gulp-gh-pages can do this https://www.npmjs.com/package/gulp-gh-pages
You can make similar functionality using npm scripts. You can go further and use github actions to execute an npm script when pushing a commit to the master.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question