Skip to content

Commit

Permalink
fix: use token authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
Midnighter committed Oct 30, 2017
1 parent 238fbbb commit 4c287ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/deploy_website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ target=/tmp/cobrapy-website

git clone "https://github.com/opencobra/cobrapy-website.git" "${target}"
cd "${target}"

git config user.name "Deployment Bot"
git config user.email "deploy@travis-ci.org"
git remote rm origin
git remote add origin "https://user:${GITHUB_TOKEN}@github.com/opencobra/cobrapy-website.git" &> /dev/null

git checkout master
python "${TRAVIS_BUILD_DIR}"/scripts/publish_release.py "${TRAVIS_BUILD_DIR}"/release-notes "${target}"/content/releases "${TRAVIS_TAG}"
git add .
Expand Down

0 comments on commit 4c287ac

Please sign in to comment.