From 8e981f276aad9a373110134a64079de296cd781c Mon Sep 17 00:00:00 2001 From: Evgeny Smyshlyaev Date: Mon, 4 Mar 2019 20:54:49 +0300 Subject: [PATCH] Release via CI #202 (#203) --- .travis.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.travis.yml b/.travis.yml index 29c28ef..653d338 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,5 +4,24 @@ node_js: before_script: - npm install script: npm test + notifications: email: false + +before_deploy: + - export RELEASE_TAG=$(git tag | tail -1) + - mkdir -p hastic-grafana-app-$RELEASE_TAG + - cp -r dist hastic-grafana-app-$RELEASE_TAG + - tar -zxf hastic-grafana-app-$RELEASE_TAG hastic-grafana-app-$RELEASE_TAG.tar.gz + - zip -r hastic-grafana-app-$RELEASE_TAG hastic-grafana-app-$RELEASE_TAG.zip + +deploy: + provider: releases + file: + - "hastic-grafana-app-$RELEASE_TAG.zip" + - "hastic-grafana-app-$RELEASE_TAG.tar.gz" + email: ping@corpglory.com + github-token: $GITHUB_TOKEN + skip_cleanup: true + on: + tags: false