travis_github_deployer 0.1.5 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -17,27 +17,29 @@ In order for Travis CI to be 'allowed' to push up the changes into a Github repo
17
17
 
18
18
  You can set up these environment variables in a secure way using the travis gem, in the following way:
19
19
 
20
- {% highlight bash %}
20
+ ```bash
21
21
  $ gem install travis
22
22
  $ cd <name of your repository>
23
23
  $ curl -u <your username> -d '{"scopes":["public_repo"],"note":"Travis CI deployer"}' \
24
24
  https://api.github.com/authorizations
25
25
  $ travis encrypt 'GIT_NAME="<your name>" GIT_EMAIL=<your email> \
26
26
  GH_TOKEN=<your token>' --add
27
- {% endhighlight %}
27
+ ```
28
28
 
29
29
  ### How does this work?
30
30
 
31
31
  The following command:
32
32
 
33
33
  ```bash
34
- $ curl -u <your username> -d '{"scopes":["public_repo"],"note":"Travis CI deployer"}' https://api.github.com/authorizations
34
+ $ curl -u <your username> -d '{"scopes":["public_repo"],"note":"Travis CI deployer"}' \
35
+ https://api.github.com/authorizations
35
36
  ```
36
37
 
37
38
  This will get an authentication token. With it, Travis CI can commit under your name. So be careful with it. Then with the following command:
38
39
 
39
40
  ```bash
40
- $ travis encrypt 'GIT_NAME="<your name>" GIT_EMAIL=<your email> GH_TOKEN=<your token>' --add
41
+ $ travis encrypt 'GIT_NAME="<your name>" GIT_EMAIL=<your email> \
42
+ GH_TOKEN=<your token>' --add
41
43
  ```
42
44
 
43
45
  This will take the taken and add it to a 'secure' section in your travis.yml. The Travis Github Deployer will grab it from that section and use it to push up the changes to your repository
@@ -1,4 +1,4 @@
1
1
 
2
2
  module TravisGithubDeployerVersion
3
- VERSION = "0.1.5"
3
+ VERSION = "0.2.0"
4
4
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: travis_github_deployer
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.5
5
+ version: 0.2.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Bas Vodde