mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 01:25:16 +00:00
9 lines
395 B
Bash
Executable File
9 lines
395 B
Bash
Executable File
#!/bin/bash
|
|
NAME=redash
|
|
VERSION=$(python ./manage.py version)
|
|
FULL_VERSION=$VERSION+b$CIRCLE_BUILD_NUM
|
|
FILENAME=$CIRCLE_ARTIFACTS/$NAME.$FULL_VERSION.tar.gz
|
|
|
|
sed -ri "s/^__version__ = '([A-Za-z0-9.-]*)'/__version__ = '$FULL_VERSION'/" redash/__init__.py
|
|
tar -zcv -f $FILENAME --exclude="optipng*" --exclude=".git*" --exclude="*.pyc" --exclude="*.pyo" --exclude="venv" --exclude="node_modules" *
|