forked from KC3Kai/KC3Kai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add packaging release.zip only task to grunt * Deploy release.zip to github only on release branch * Cancel gitter notifications
- Loading branch information
Showing
2 changed files
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,16 +19,17 @@ before_script: | |
# DEPLOY TO CHROME WEBSTORE | ||
script: | ||
- export KC3_VERSION=$(node -p -e "require('./package.json').version") | ||
- if [ $TRAVIS_BRANCH == 'webstore' ]; then grunt build; fi | ||
- if [ $TRAVIS_BRANCH == 'webstore' ] || [ $TRAVIS_BRANCH == 'release' ]; then grunt build; fi | ||
- if [ $TRAVIS_BRANCH == 'webstore' ] && [ $TRAVIS_PULL_REQUEST == "false" ]; then grunt webstore; fi | ||
- if [ $TRAVIS_BRANCH == 'release' ] && [ $TRAVIS_PULL_REQUEST == "false" ]; then grunt package; fi | ||
|
||
# DEPLOY TO GITHUB RELEASES | ||
before_deploy: | ||
- git config --global user.email "[email protected]" | ||
- git config --global user.name "Travis CI" | ||
- git tag $KC3_VERSION -a -m "Automated GitHub release for $KC3_VERSION" | ||
- git push -q https://dragonjet:[email protected]/KC3Kai/KC3Kai --tags | ||
- mv build/release.zip build/kc3kai-$KC3_VERSION.zip | ||
- git push -q https://sinsinpub:[email protected]/sinsinpub/KC3Kai --tags | ||
- cp build/release.zip build/kc3kai-$KC3_VERSION.zip | ||
deploy: | ||
provider: releases | ||
skip_cleanup: true | ||
|
@@ -37,14 +38,14 @@ deploy: | |
- build/kc3kai-$KC3_VERSION.zip | ||
on: | ||
tags: false | ||
branch: webstore | ||
branch: release | ||
condition: $TRAVIS_PULL_REQUEST == "false" | ||
|
||
# BUILD NOTIFICATION FOR GITTER | ||
notifications: | ||
webhooks: | ||
urls: | ||
- https://webhooks.gitter.im/e/e8964a721dd35fd96e46 | ||
on_success: change | ||
on_failure: change | ||
on_start: never | ||
#notifications: | ||
# webhooks: | ||
# urls: | ||
# - https://webhooks.gitter.im/e/e8964a721dd35fd96e46 | ||
# on_success: change | ||
# on_failure: change | ||
# on_start: never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters