Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ jobs:
name: Export package version
command: |
PKG_VERSION=$(node -e "console.log(require('./package.json').st2_version);")
PKG_RELEASE=$(packagecloud.sh next-revision xenial ${PKG_VERSION} st2web)
if [ -n "$PACKAGECLOUD_TOKEN" ]; then
PKG_RELEASE=$(packagecloud.sh next-revision xenial ${PKG_VERSION} st2web)
else
# is fork
PKG_RELEASE=1
fi
echo "export PKG_VERSION=${PKG_VERSION}" >> $BASH_ENV
echo "export PKG_RELEASE=${PKG_RELEASE}" >> $BASH_ENV
- run:
Expand Down