Skip to content

Commit c79a31c

Browse files
committed
sync aws cli
1 parent 651781a commit c79a31c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/cicd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ jobs:
3636
tag=`basename ${{ github.ref }}`
3737
create_release schell todo-mvc-bench ${{ secrets.GITHUB_TOKEN }} $tag || exit 1
3838
upload_release_file ${{ secrets.GITHUB_TOKEN }} release.tar.gz release.tar.gz
39+
sync_release

scripts/common.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ create_release() {
7979
fi
8080
}
8181

82+
8283
upload_release_file() {
8384
token=$1
8485
file=$2
@@ -104,3 +105,9 @@ upload_release_file() {
104105
return 1
105106
fi
106107
}
108+
109+
110+
sync_release() {
111+
cd release/
112+
aws s3 sync deploy s3://zyghost.com/projects/todo-mvc-bench
113+
}

0 commit comments

Comments
 (0)