Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mod: version & workflows #6

Merged
merged 3 commits into from
Aug 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Dashboard RPM Relase
on:
push:
branches:
- master
release:
types:
- published
jobs:
package:
name: build package
Expand Down
4 changes: 2 additions & 2 deletions DEPLOY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "nebula-graph-dashboard",
"version": "1.0.0",
"release": "1",
"version": "1.0.1",
"description": "nebula-dashboard",
"private": true,
"egg": {
Expand Down
3 changes: 1 addition & 2 deletions scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
tar -czf nebula-graph-dashboard-$VERSION.x86_64.tar.gz nebula-graph-dashboard