neoeno / gulp-build-branch

Publish your build folder to a branch (like GitHub Pages)
MIT License
1 stars 1 forks source link

Callback function #6

Open stubendek opened 7 years ago

stubendek commented 7 years ago

Hi!

Thank you for this great tool! I started to use it, it works fine. But I would like to push changes (by a git module) after the gh-pages branch is built. The best way to do that would be to add a callback function that is called after the build is finished. Or do you have any other suggestion?

Cheers, Attila

neoeno commented 7 years ago

Hello Attila!

If I understand you correctly, you want to git push to your git remote after gulp-build-branch has done its work. Is that right?

If I needed to automate this, I'd probably do something like:

gulp doTheBuildBranchStuff && git push origin my-build-branch:my-build-branch

Would that work for you? Or am I misunderstanding?