Changed Build Script for CI
This commit is contained in:
parent
19d963d6eb
commit
a450dd97b2
1 changed files with 5 additions and 5 deletions
10
build.sh
10
build.sh
|
@ -19,14 +19,14 @@ mkdir -vp $(dirname "$0")/compiled
|
|||
mv -v *.dat $(dirname "$0")/compiled
|
||||
rm *.lno
|
||||
mkdir dist
|
||||
if [[ -n "${DRONE_TAG}" ]]
|
||||
if [[ -n "${CI_COMMIT_TAG}" ]]
|
||||
then
|
||||
echo "Making ready for Tag: ${DRONE_TAG}"
|
||||
zip -9 dist/compiled-${DRONE_TAG}.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
|
||||
echo "Making ready for Tag: ${CI_COMMIT_TAG}"
|
||||
zip -9 dist/compiled-${CI_COMMIT_TAG}.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
|
||||
elif [[ -n "${DRONE_COMMIT_SHA}" ]]
|
||||
then
|
||||
echo "Making ready for Commit: ${DRONE_COMMIT_SHA:0:10}"
|
||||
zip -9 dist/compiled-${DRONE_COMMIT_SHA:0:10}.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
|
||||
echo "Making ready for Commit: ${CI_COMMIT_SHA:0:10}"
|
||||
zip -9 dist/compiled-${CI_COMMIT_SHA:0:10}.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
|
||||
else
|
||||
zip -9 dist/compiled.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
|
||||
fi
|
Loading…
Reference in a new issue