mirror of
https://github.com/getredash/redash.git
synced 2026-03-22 10:00:17 -04:00
Cirlce: upload file to GitHub when done.
This commit is contained in:
6
Makefile
6
Makefile
@@ -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)
|
||||
|
||||
@@ -8,3 +8,8 @@ dependencies:
|
||||
test:
|
||||
post:
|
||||
- make pack
|
||||
deployment:
|
||||
github:
|
||||
branch: master
|
||||
commands:
|
||||
- make upload
|
||||
|
||||
Reference in New Issue
Block a user