Skip to content

Commit bf9ba16

Browse files
committed
Rename GitHub secrets in release script
1 parent 34446ed commit bf9ba16

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ script:
1515
after_script:
1616
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
1717

18-
# IMPORTANT: scripts require GITHUB_AUTH_TOKEN and GITHUB_AUTH_EMAIL environment variables
18+
# IMPORTANT: scripts require GH_AUTH_TOKEN and GH_AUTH_EMAIL environment variables
1919
# IMPORTANT: scripts has to be set executables in the Git repository (error 127)
2020
# https://github.com/travis-ci/travis-ci/issues/5538#issuecomment-225025939
2121
# http://stackoverflow.com/a/15572639
@@ -27,7 +27,7 @@ deploy:
2727
on:
2828
branch: release
2929
- provider: releases
30-
api_key: $GITHUB_AUTH_TOKEN
30+
api_key: $GH_AUTH_TOKEN
3131
file:
3232
- "./dist/chartjs-plugin-streaming.js"
3333
- "./dist/chartjs-plugin-streaming.min.js"

scripts/release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ if [ "$GITTAG" != "" ]; then
1717
exit 1
1818
fi
1919

20-
git remote add auth-origin https://$GITHUB_AUTH_TOKEN@github.com/$TRAVIS_REPO_SLUG.git
21-
git config --global user.email "$GITHUB_AUTH_EMAIL"
20+
git remote add auth-origin https://$GH_AUTH_TOKEN@github.com/$TRAVIS_REPO_SLUG.git
21+
git config --global user.email "$GH_AUTH_EMAIL"
2222
git config --global user.name "nagix"
2323
git checkout --detach --quiet
2424
git add -f dist/*.js bower.json

0 commit comments

Comments
 (0)