From 7448cd7cfb307055c99c16cdb5b3a03848ef54e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw?= Date: Fri, 27 Jul 2018 19:08:04 +0200 Subject: [PATCH] add primitive packaging and deploy --- .travis.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index b9bd5b9..d8336f4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,16 +5,31 @@ python: env: - NODE_VERSION='8.11.3' +addons: + apt: + update: true + packages: + - python3-pip + before_install: - nvm install $NODE_VERSION - - sudo apt-get update -qq - - sudo apt-get install -qq python3-pip + script: - pip3 install -r requirements.txt - yarn install - npm run build + - TURTLE_VERSION = $(turtle -v) + - zip -r tcs-$TURTLE_VERSION.zip . -x node_modules/\* .git/\* .cache/\* branches: only: - - hyperapp \ No newline at end of file + - hyperapp + +deploy: + provider: releases + api_key: $GITHUB_TOKEN + file: *.zip + skip_cleanup: true + on: + tags: true \ No newline at end of file