From b00ab858c2d9e278b2c4d22e3c128d7c7bad2ac4 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Wed, 26 Jun 2024 15:01:14 +0300 Subject: [PATCH] [develop]: Add *.zip in gitignore file and set release zip name to version.zip --- .gitignore | 1 + release.sh | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5e9454d..f3ca30f 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ node_modules/ dist/ .idea/ package-lock.json +*.zip diff --git a/release.sh b/release.sh index 015a35e..27c8843 100755 --- a/release.sh +++ b/release.sh @@ -1,4 +1,4 @@ -rm -f release.zip +rm -f v*.zip git clone https://code-repo.d4science.org/MaDgIK/irish-monitor.git cd irish-monitor git checkout master @@ -12,5 +12,6 @@ git checkout master cd ../../../ npm run after-build-clean cd ../ -zip -r release.zip irish-monitor +version=$(npm pkg get version | xargs) +zip -r v$version.zip irish-monitor rm -rf irish-monitor