From e94ed388b2fd7db6e98a57b3680e784c4b49cd68 Mon Sep 17 00:00:00 2001 From: negative0 Date: Thu, 25 Jul 2019 20:39:57 +0530 Subject: [PATCH] Trying to deploy on GitHub Releases. --- .travis.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index f07f8eccd..120173475 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,13 +7,20 @@ cache: script: - npm run test:cov - npm run build + - zip -r currentbuild.zip build after_script: # Upload coverage reports - COVERALLS_REPO_TOKEN=$coveralls_repo_token npm run coveralls deploy: - provider: pages - skip_cleanup: true - github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable - local_dir: build - keep_history: true - on: - branch: master \ No newline at end of file + - provider: pages + skip_cleanup: true + github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable + local_dir: build + keep_history: true + on: + branch: master + - provider: releases + api_key: $GITHUB_TOKEN + file: currentbuild.zip + skip_cleanup: true + on: + tags: true