fix bad condition and add auth

And commit to master
This commit is contained in:
chrisgarrity 2018-12-07 08:46:16 -05:00
parent a591ea9212
commit 7d3a81799f
2 changed files with 3 additions and 3 deletions

View file

@ -8,10 +8,10 @@ cache:
jobs: jobs:
include: include:
- stage: update translations - stage: update translations
if: $TRAVIS_EVENT_TYPE == cron if: type == cron
script: ./scripts/update-translations.sh script: ./scripts/update-translations.sh
- stage: npm release - stage: npm release
if: (branch = master OR branch = npm-publish) AND $TRAVIS_EVENT_TYPE != cron if: branch in (master, npm-publish) AND type != cron
node_js: 8 node_js: 8
script: npm run build script: npm run build
before_deploy: before_deploy:

View file

@ -11,4 +11,4 @@ npm run test
# commit any updates and push. Build and release should happen on the push not here. # commit any updates and push. Build and release should happen on the push not here.
git add . git add .
git commit -m "pull new editor translations from Transifex" git commit -m "pull new editor translations from Transifex"
git push git push https://${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git HEAD:master