Skip to content

Commit 01c4e65

Browse files
committed
Добавил определение канала публикации
1 parent 8894739 commit 01c4e65

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

deploy-hub.oscript.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
set -e
3-
3+
export CHANNEL=dev
4+
if [ $TRAVIS_BRANCH == "master" ]; then export CHANNEL=stable;fi
45
temp=`cat packagedef | grep ".Версия(" | sed 's|[^"]*"||' | sed -r 's/".+//'`;
56
export VERSION=${temp##*|};
6-
oscript /usr/share/oscript/lib/opm/src/opm.os push --token $GITHUB_OAUTH_TOKEN --channel stable --file ./cli-$VERSION.ospx;
7+
oscript /usr/share/oscript/lib/opm/src/opm.os push --token $GITHUB_OAUTH_TOKEN --channel $CHANNEL --file ./cli-$VERSION.ospx;

0 commit comments

Comments
 (0)