From 5a76a2b1105b9a3b98761c44bc10ee6994bdb6f9 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 13 Feb 2022 10:52:42 +0800 Subject: [PATCH] COS debug --- .github/workflows/release.yml | 29 ++++++++++++++--------------- share/const.go | 2 +- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8f463e3f..15ad1928 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,16 +26,6 @@ jobs: - name: Install coscmd run: sudo pip3 install coscmd - # - name: Debug Query - # if: matrix.platform == 'macos-11' - # run: | - # ls -l /Library/Frameworks/Python.framework/Versions/2.7/bin/ - - # - name: Setup coscmd - # if: matrix.platform == 'macos-11' - # run: | - # ln -s /Library/Frameworks/Python.framework/Versions/2.7/bin/coscmd /usr/bin/coscmd - - name: Setup Cache uses: actions/cache@v2 with: @@ -114,7 +104,7 @@ jobs: run: | make artifacts-macos - - name: Configure COS CMD + - name: Configure COS For Silicon Valley env: SECRET_ID: ${{ secrets.COS_ID }} SECRET_KEY: ${{ secrets.COS_KEY }} @@ -123,10 +113,19 @@ jobs: run: | coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION - - name: Debug Query + - name: Push To Silicon Valley run: | - ls -l ./dist/release/ + for file in ./dist/release/*; do coscmd upload $file /archives/; done; - - name: Upload To SV + - name: Configure COS For Beijing + env: + SECRET_ID: ${{ secrets.COS_ID }} + SECRET_KEY: ${{ secrets.COS_KEY }} + BUCKET: release-bj-1252011659 + REGION: ap-beijing run: | - for file in ./dist/release/*; do coscmd -d upload $file /archives/; done; + coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION + + - name: Push To Beijing + run: | + for file in ./dist/release/*; do coscmd upload $file /archives/; done; diff --git a/share/const.go b/share/const.go index d5111fbf..f08fff1a 100644 --- a/share/const.go +++ b/share/const.go @@ -4,7 +4,7 @@ package share // session -> freeport fix bug // 更新制品目录 -> ui/downloads // Arm64 制品 -> arm build test -// MacOS 制品 -> debug 17 +// MacOS 制品 -> debug 18 // VERSION 版本号 const VERSION = "0.9.1"