├── index.html
└── README.md
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Example Landing page, using circle ci
6 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Circle CI and Github Pages.
2 | Playing with [CircleCi](https://circleci.com) to deploy automatically projects to [gh-pages](https://pages.github.com/).
3 |
4 | You can see the results [here](http://villanuevand.github.io/deployment-circleci-gh-pages/).
5 | ¡Say hi to the cat!.
6 |
7 | Special thanks to:
8 | * [Eldarlabs](https://github.com/eldarlabs) github organization, for the repo [eldarlabs/ghpages-deploy-script](https://github.com/eldarlabs/ghpages-deploy-script).
9 | * [@jcouyang](https://github.com/jcouyang) for [circle.yml](https://gist.github.com/jcouyang/81ae59d10c15572c79d8) gist.
10 | * [@motemen](https://github.com/motemen) for [push-gh-pages.sh
11 | ](https://gist.github.com/motemen/8595451) gist.
12 |
13 | ## ¿How can i do it?
14 |
15 | ### Configure user Machine at Circle CI.
16 | Go to this [link](https://circleci.com/docs/github-security-ssh-keys/#machine-user-keys) and follow the instructions. ¡Are really simple!
17 |
18 | ### Create the circle.yml file
19 | You can configurate the circle.yml file to you needs, in this [link](https://circleci.com/docs/configuration/). But, i used the followed [circle.yml file](https://github.com/eldarlabs/ghpages-deploy-script/blob/master/circle.yml).
20 |
21 | ### Create deploy.sh script
22 | I use this [deploy.sh](https://github.com/eldarlabs/ghpages-deploy-script/blob/master/scripts/deploy-ghpages.sh) script courtesy of [@eldarlabs](https://github.com/eldarlabs).
23 |
24 | ### Configure Circle CI variable enviroment
25 | The script also seems to require you to init the git user and email. To hide this information, the script will grab the information from circleci environment variable. You will need to configure environment variables GH_NAME (GitHub Name) and GH_EMAIL (GitHub Email).
26 | #### But.. ¿How can i do that?
27 | * Really simple just go to [CircleCi](https://circleci.com)
28 | * Click on project settings => Build Settings => Enviroment Variables
29 | * Add 2 new enviroment variables:
30 | * GH_NAME (GitHub Name) .
31 | * GH_EMAIL (GitHub Email).
32 |
33 | _Reference Image - Enviroment Variables Configuration:_
34 |
35 | 
36 |
37 |
38 | Push any change to `master` branch, check the build in Circle Ci, and enjoy how push automatically to your `gh-page` branch.
39 |
40 | **¡Feel free to contribute!**
41 |
42 | #### License
43 | [MIT License](https://raw.githubusercontent.com/Villanuevand/deployment-circleci-gh-pages/master/LICENSE).
44 |
45 | Copyright (c) 2016 Andrés Villanueva.
46 |
47 |
--------------------------------------------------------------------------------