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 mv -v *.dat $(dirname "$0")/compiled
rm *.lno rm *.lno
mkdir dist mkdir dist
if [[ -n "${DRONE_TAG}" ]] if [[ -n "${CI_COMMIT_TAG}" ]]
then then
echo "Making ready for Tag: ${DRONE_TAG}" echo "Making ready for Tag: ${CI_COMMIT_TAG}"
zip -9 dist/compiled-${DRONE_TAG}.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat zip -9 dist/compiled-${CI_COMMIT_TAG}.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
elif [[ -n "${DRONE_COMMIT_SHA}" ]] elif [[ -n "${DRONE_COMMIT_SHA}" ]]
then then
echo "Making ready for Commit: ${DRONE_COMMIT_SHA:0:10}" echo "Making ready for Commit: ${CI_COMMIT_SHA:0:10}"
zip -9 dist/compiled-${DRONE_COMMIT_SHA:0:10}.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat zip -9 dist/compiled-${CI_COMMIT_SHA:0:10}.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
else else
zip -9 dist/compiled.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat zip -9 dist/compiled.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
fi fi