[#715] Checkout master branch first before committing

This commit is contained in:
Jonathan Wren 2019-11-09 14:09:53 -08:00
parent 21ef8dd8ea
commit 397346b0ac

View file

@ -26,6 +26,7 @@ deploy:
after_deploy: after_deploy:
- git config --global user.email "jrnl.bot@gmail.com" - git config --global user.email "jrnl.bot@gmail.com"
- git config --global user.name "Jrnl Bot" - git config --global user.name "Jrnl Bot"
- git checkout master
- git add pyproject.toml - git add pyproject.toml
- git commit -m "Incrementing version to ${TRAVIS_TAG}" - git commit -m "Incrementing version to ${TRAVIS_TAG}"
- git push https://${GITHUB_TOKEN}@github.com/jrnl-org/jrnl.git master - git push https://${GITHUB_TOKEN}@github.com/jrnl-org/jrnl.git master