문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top