Skip to content

Commit ba294e2

Browse files
committed
Note GitHub password should be second line in file
1 parent 927b9ec commit ba294e2

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

RELEASE.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ The Travis CI environment variables are all configured in `.travis.yml`:
2424

2525
* `BINTRAY_USER`, which is in plain text (being already public information)
2626
* `BINTRAY_PASS`, which is the BinTray API key and is encrypted by Travis
27-
* `GITHUB_PASS`, which is the GitHub personal access token needed for any
28-
`mvn site-deploy` and is also encrypted by Travis
27+
* `GITHUB_PASS`, which is the GitHub personal access token for
28+
`mvn site-deploy` and is encrypted by Travis
2929

3030
Once `mvn deploy` is complete, the artifacts are available to end users via
3131
[JCenter](https://bintray.com/bintray/jcenter). The artifacts are not GPG signed
@@ -78,14 +78,18 @@ Any BinTray user with administrative access to the repository can use their
7878
API key. To change the effective BinTray user:
7979

8080
1. Set the`BINTRAY_USER` in `.travis.yml` to the new BinTray username
81-
2. Delete the existing `.travis.yml` `env` `secure:` line (which is the BinTray
82-
password)
81+
2. Delete the existing `.travis.yml` `env` `secure:` line (it's the first one)
8382
3. Use `travis encrypt BINTRAY_PASS=the_api_key` and update `.travis.yml`
8483

8584
Any GitHub user with commit rights to the proejct's repository can use their
86-
personal access token for Maven-based site updates. Login to GitHub and create a
87-
new personal access token with two scopes only: `public_repo, user:email`. Then
88-
use `travis encrypt GITHUB_PASS=the_access_token` and update `.travis.yml`.
85+
personal access token for Maven-based site updates. To change the effective
86+
GitHub personal access token:
87+
88+
1. Login to GitHub and create a new personal access token with two scopes only:
89+
`public_repo, user:email`.
90+
2. Delete the existing `.travis.yml` `env` `secure:` line (it's the second one)
91+
3. Use `travis encrypt GITHUB_PASS=the_access_token` and update `.travis.yml`,
92+
ensuring you add it as the second encrypted line to simplify identification
8993

9094
Any OSS Sonatype user with deploy rights to the Maven Central group ID can be
9195
used for the Maven Central sync operation. Login to OSS Sonatype and generate

0 commit comments

Comments
 (0)