D
D
Dmitry2017-06-13 23:21:37
git
Dmitry, 2017-06-13 23:21:37

How to upload a project to github using gulp?

Good evening. Here I joined gulp.js when laying out and assembling projects. Everything is fine, but I just can’t find a guide for uploading a project to github using gulp.
I did the environment setup according to this article. For deployment on git, I installed this and this plugin. But the result is null. I ask for your help.
If I ask sheer nonsense - you say so.
Here is the algorithm of my work: I build the project into the build folder --> then copy it to the local folder of the git repository on the computer --> open SmartGit and push the changes

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Velichko, 2017-07-01
@Zoxon

I use gulp-gh-pages
for this. Here is an example of how I use it . My source code and build result are stored in the same repository, just in different branches (build and master), respectively.
It is enough to specify a branch . The plugin can be configured to push to another repository. The only limitation is to use ssh key authentication. Example:branch: 'build'.

remoteUrl: '[email protected]:zoxon/gulp-front.git',
branch: 'master'

A
Alexander Aksentiev, 2017-06-13
@Sanasol

"deploy" to git via gallp... hmm... why?
Are there any errors or where?
Git is available globally via terminal?
Are the access keys configured so that it is uploaded there without asking about the password?
Because there is not a word about votization https://github.com/zhevron/gulp-deploy-git/blob/ma...
So everything should go silently.
and where does gulp then upload to git?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question