Changed/Added Pipeline #2

Merged
Inv3st0r merged 3 commits from phil-patch-1 into main 2024-10-05 23:11:18 +00:00
Showing only changes of commit a450dd97b2 - Show all commits

View file

@ -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