From 413fc7c238ea9c324673d852151ad538d777c90f Mon Sep 17 00:00:00 2001 From: NicolaCage Date: Wed, 25 Aug 2021 20:59:18 +0800 Subject: [PATCH 1/3] mod: version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dabd0a96..4de2f706 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nebula-graph-dashboard", - "version": "1.0.0", + "version": "1.0.1", "release": "1", "description": "nebula-dashboard", "private": true, From 749f8fc189be8f6bdccc86eaddfa9dbe38fd3aaf Mon Sep 17 00:00:00 2001 From: NicolaCage Date: Thu, 26 Aug 2021 17:28:39 +0800 Subject: [PATCH 2/3] mod: workflows --- .github/workflows/package.yml | 5 +++-- scripts/package.sh | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index b0e17f1e..3057c43b 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -1,8 +1,9 @@ name: Dashboard RPM Relase on: push: - branches: - - master + release: + types: + - published jobs: package: name: build package diff --git a/scripts/package.sh b/scripts/package.sh index b08fb04e..337a0243 100644 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -30,7 +30,6 @@ mv $DASHBOARD/vendors/prometheus/ $TARGET/ ### Nebula Graph Dashboard relative ### cd $DASHBOARD VERSION=`cat package.json | grep '"version":' | awk 'NR==1{print $2}' | awk -F'"' '{print $2}'` -RELEASE=`cat package.json | grep '"release":' | awk 'NR==1{print $2}' | awk -F'"' '{print $2}'` bash ./scripts/setEventTracking.sh $1 npm install --unsafe-perm @@ -49,4 +48,4 @@ cp $DASHBOARD/app/assets/index.html ./app/assets/ ### tar cd $DIR -tar -czf nebula-graph-dashboard-$VERSION-$RELEASE.x86_64.tar.gz nebula-graph-dashboard \ No newline at end of file +tar -czf nebula-graph-dashboard-$VERSION.x86_64.tar.gz nebula-graph-dashboard \ No newline at end of file From 7aa3b66e7de109d962783e4e57a7eab49ea16bdd Mon Sep 17 00:00:00 2001 From: NicolaCage Date: Thu, 26 Aug 2021 17:34:20 +0800 Subject: [PATCH 3/3] mod: code review --- DEPLOY.md | 4 ++-- package.json | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/DEPLOY.md b/DEPLOY.md index 6f53dd62..f4352421 100644 --- a/DEPLOY.md +++ b/DEPLOY.md @@ -5,10 +5,10 @@ - Linux ## Download -` wget https://oss-cdn.nebula-graph.com.cn/nebula-graph-dashboard/nebula-graph-dashboard-${version-release}.x86_64.tar.gz` +` wget https://oss-cdn.nebula-graph.com.cn/nebula-graph-dashboard/nebula-graph-dashboard-${version}.x86_64.tar.gz` ## Unpress -`tar -xvf nebula-graph-dashboard-${version-release}.x86_64.tar.gz` +`tar -xvf nebula-graph-dashboard-${version}.x86_64.tar.gz` ## Directory descrption diff --git a/package.json b/package.json index 4de2f706..329040d5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,6 @@ { "name": "nebula-graph-dashboard", "version": "1.0.1", - "release": "1", "description": "nebula-dashboard", "private": true, "egg": {