Skip to content

Commit

Permalink
Fix package build
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed May 2, 2019
1 parent f466e58 commit b1f52b4
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,16 @@ steps:
fi
CHANNEL=stable
echo $PLUGIN_VERSION | grep -qi rc && CHANNEL=beta
DEB_FILE=target/cortex_$${PLUGIN_VERSION}_all.deb
RPM_FILE=target/rpm/RPMS/noarch/cortex-$${PLUGIN_VERSION}.noarch.rpm
if $(echo $PLUGIN_VERSION | grep -qi rc)
then
CHANNEL=beta
V=$(echo $PLUGIN_VERSION | sed -e 's/-\([rR][cC]\)/-0.1\1/')
DEB_FILE=target/cortex_$${V}_all.deb
RPM_FILE=target/rpm/RPMS/noarch/cortex-$${V}.noarch.rpm
else
DEB_FILE=target/cortex_$${PLUGIN_VERSION}_all.deb
RPM_FILE=target/rpm/RPMS/noarch/cortex-$${PLUGIN_VERSION}.noarch.rpm
fi
ZIP_FILE=target/universal/cortex-$${PLUGIN_VERSION}.zip
upload \
Expand Down

0 comments on commit b1f52b4

Please sign in to comment.