V
V
volucris12021-04-18 12:28:51
GitHub
volucris1, 2021-04-18 12:28:51

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

2 answer(s)
X
xdevelx, 2021-04-18
@volucris1

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.

V
Vasily Bannikov, 2021-04-18
@vabka

merge

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question