diff options
author | Rob Loach <robloach@gmail.com> | 2015-02-08 09:36:53 -0500 |
---|---|---|
committer | Rob Loach <robloach@gmail.com> | 2015-02-08 09:36:53 -0500 |
commit | 56942fbeb71c41a074e293c58dd2633eda016198 (patch) | |
tree | a820ce826a9abd8225f6b1215422131564b3bb16 /README.md | |
parent | bc0f13b93a3b20f1640c75c9f28fe77b5a4c89ca (diff) | |
download | git-deploy-master.zip git-deploy-master.tar.gz git-deploy-master.tar.bz2 |
Update to allow multiple branchesHEAD0.0.5origin/masterorigin/HEADmaster
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 23 |
1 files changed, 20 insertions, 3 deletions
@@ -26,16 +26,33 @@ Deploy and maintain a number of git repositories through PHP. ## Usage -1. Create a `gh-pages-deploy.json` file: +1. Create a `git-deploy.json` file: ``` json { "mywebsite": "https://github.com/my/website.git", - "myotherwebsite": "https://github.com/my/otherwebsite.git" + "myotherwebsite": { + "repo": "https://github.com/my/otherwebsite.git" + }, + "mythirdwebsite": { + "repo": "https://github.com/my/otherwebsite.git", + "branches": [ + "branch1", + "branch2" + ] + }, + "myfourthwebsite": { + "repo": "https://github.com/my/otherwebsite.git", + "branches": { + "branch1": "path/to/destination/branch1", + "branch2": "path/to/destination/branch2", + "branch3": "path/to/destination/branch3" + } + } } ``` -2. Execute GitHub Pages Deploy to deploy all sites: +2. Execute Git Deploy to deploy all sites: ``` bash gh-pages-deploy/bin/gh-pages-deploy deploy |