Skip to content

Commit

Permalink
Rename GitHub secrets in release script
Browse files Browse the repository at this point in the history
  • Loading branch information
nagix committed May 2, 2021
1 parent 34446ed commit bf9ba16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ script:
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

# IMPORTANT: scripts require GITHUB_AUTH_TOKEN and GITHUB_AUTH_EMAIL environment variables
# IMPORTANT: scripts require GH_AUTH_TOKEN and GH_AUTH_EMAIL environment variables
# IMPORTANT: scripts has to be set executables in the Git repository (error 127)
# https://github.com/travis-ci/travis-ci/issues/5538#issuecomment-225025939
# http://stackoverflow.com/a/15572639
Expand All @@ -27,7 +27,7 @@ deploy:
on:
branch: release
- provider: releases
api_key: $GITHUB_AUTH_TOKEN
api_key: $GH_AUTH_TOKEN
file:
- "./dist/chartjs-plugin-streaming.js"
- "./dist/chartjs-plugin-streaming.min.js"
Expand Down
4 changes: 2 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ if [ "$GITTAG" != "" ]; then
exit 1
fi

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

0 comments on commit bf9ba16

Please sign in to comment.