Skip to content

Commit

Permalink
feat: update oss path
Browse files Browse the repository at this point in the history
  • Loading branch information
hetao92 committed Aug 22, 2021
1 parent e03a409 commit 29d6d13
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 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 }}


6 changes: 3 additions & 3 deletions .github/workflows/studio-tar-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Studio Tar Package
on:
push:
branches:
- master
- hetao-test
jobs:
package:
name: build package
Expand All @@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
ref: 'master'
ref: 'hetao-test'
path: source/nebula-graph-studio
- uses: actions/checkout@v2
with:
Expand All @@ -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 29d6d13

Please sign in to comment.