Skip to content

Commit

Permalink
Merge pull request #1 from hetao92/hetao-dev
Browse files Browse the repository at this point in the history
feat: update oss path
  • Loading branch information
hetao92 authored Aug 23, 2021
2 parents e03a409 + dd59f47 commit 9e2a120
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/studio-rpm-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ jobs:
- name: Package
run: bash ./source/nebula-graph-studio/scripts/rpm-package.sh ${{ secrets.GA_ID }}
- name: Upload oss
run: cd ./source/nebula-graph-studio/tmp/ && ossutil64 -e ${{ secrets.OSS_ENDPOINT }} -i ${{ secrets.OSS_ID }} -k ${{ secrets.OSS_SECRET }} -f cp ./ ${{ secrets.OSS_URL }} --include "nebula-graph-studio-*.rpm*" --only-current-dir -r
run: bash ./source/nebula-graph-studio/scripts/rpm-upload.sh ${{ secrets.OSS_ENDPOINT }} ${{ secrets.OSS_ID }} ${{ secrets.OSS_SECRET }} ${{ secrets.OSS_URL }}


2 changes: 1 addition & 1 deletion .github/workflows/studio-tar-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ jobs:
- name: Package
run: bash ./source/nebula-graph-studio/scripts/tar-package.sh ${{ secrets.GA_ID }}
- name: Upload to OSS
run: ls -a & ossutil64 -e ${{ secrets.OSS_ENDPOINT }} -i ${{ secrets.OSS_ID }} -k ${{ secrets.OSS_SECRET }} -f cp ./ ${{ secrets.OSS_URL }} --include "nebula-graph-studio-*.tar.gz" --only-current-dir -r
run: bash ./source/nebula-graph-studio/scripts/tar-upload.sh ${{ secrets.OSS_ENDPOINT }} ${{ secrets.OSS_ID }} ${{ secrets.OSS_SECRET }} ${{ secrets.OSS_URL }}


8 changes: 8 additions & 0 deletions scripts/rpm-upload.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
set -ex

DIR=`pwd`
STUDIO=$DIR/source/nebula-graph-studio
cd $STUDIO
VERSION=`cat package.json | grep '"version":' | awk 'NR==1{print $2}' | awk -F'"' '{print $2}'`
cd $STUDIO/tmp/
ossutil64 -e $1 -i $2 -k $3 -f cp ./ $4${VERSION} --include "nebula-graph-studio-*.rpm*" --only-current-dir -r
8 changes: 8 additions & 0 deletions scripts/tar-upload.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
set -ex

DIR=`pwd`
STUDIO=$DIR/source/nebula-graph-studio
cd $STUDIO
VERSION=`cat package.json | grep '"version":' | awk 'NR==1{print $2}' | awk -F'"' '{print $2}'`
cd $DIR
ossutil64 -e $1 -i $2 -k $3 -f cp ./ $4${VERSION} --include "nebula-graph-studio-*.tar.gz" --only-current-dir -r

0 comments on commit 9e2a120

Please sign in to comment.