Pergunta

I have a few plugins created using jQuery, I have the demo's located on my server, I want to automatically update the demo every time a change is commited to the master branch on github.

I know I can use Post-Receive Hooks to get a buzz on my server, that's easy enough, what I don't know how to do yet is get the PHP script to download the latest version of the entire repository from github?

Is there an API to do this, or is there perhaps a direct link to the always latest version of a repository zipped?

Foi útil?

Solução

If you add /zipball/master to the end of your project web URL, you will get a zip of the master branch back.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top