Cirlce: upload file to GitHub when done.

This commit is contained in:
Arik Fraimovich
2014-01-26 16:30:16 +02:00
parent 2a9374e10f
commit e7145d9d48
2 changed files with 10 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
NAME=redash
VERSION=0.1
FILENAME=$(CIRCLE_ARTIFACTS)/$(NAME).$(VERSION).$(CIRCLE_BUILD_NUM).tar.gz
FULL_VERSION=$(VERSION).$(CIRCLE_BUILD_NUM)
FILENAME=$(CIRCLE_ARTIFACTS)/$(NAME).$(FULL_VERSION).tar.gz
deps:
cd rd_ui && npm install
@@ -10,3 +11,6 @@ deps:
pack:
tar -zcv -f $(FILENAME) --exclude=".git*" --exclude="*.pyc" --exclude="*.pyo" --exclude="rd_ui/node_modules" --exclude="rd_ui/dist/bower_components" --exclude="rd_ui/app" *
upload:
python bin/upload_version.py $(FULL_VERSION) $(FILENAME)

View File

@@ -8,3 +8,8 @@ dependencies:
test:
post:
- make pack
deployment:
github:
branch: master
commands:
- make upload