travis_github_deployer 0.1.5 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +6 -4
- data/lib/travis_github_deployer/version.rb +1 -1
- metadata +1 -1
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
|
-
|
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
|
-
|
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"}'
|
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>
|
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
|