From a90dbec1c2e38f41f2260560f34151b7fe2bc987 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 13 Feb 2022 08:54:54 +0800 Subject: [PATCH] upload --- .github/workflows/release.yml | 29 ++++++++++++----------------- share/const.go | 2 +- 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e9839844..42a0119c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,9 @@ jobs: sudo apt-get install -y gcc-arm-linux-gnueabi g++-arm-linux-gnueabi sudo apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf sudo apt-get install -y g++-aarch64-linux-gnu crossbuild-essential-arm64 + + - name: Install coscmd + run: sudo pip install coscmd - name: Setup Cache uses: actions/cache@v2 @@ -101,21 +104,13 @@ jobs: run: | make artifacts-macos - - name: Push to Station (@Silicon Valley) - uses: appleboy/scp-action@master - with: - source: ./dist/release/* - target: /data/release/ui/download/ - host: ${{ secrets.SSH_HOST }} - port: ${{ secrets.SSH_PORT }} - username: ${{ secrets.SSH_USER }} - key: ${{ secrets.SSH_KEY }} + - name: Configure COS CMD + env: + SECRET_ID: ${{ secrets.COS_ID }} + SECRET_KEY: ${{ secrets.COS_KEY }} + BUCKET: release-sv-1252011659 + REGION: na-siliconvalley + run: coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION - - name: Distribution - uses: appleboy/ssh-action@master - with: - script: ${{ secrets.SSH_CMD }} - host: ${{ secrets.SSH_HOST }} - port: ${{ secrets.SSH_PORT }} - username: ${{ secrets.SSH_USER }} - key: ${{ secrets.SSH_KEY }} + - name: Upload To SV + run: coscmd upload ./dist/release/* /archives/ diff --git a/share/const.go b/share/const.go index 9f7d269b..c19b1c68 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 8 +// MacOS 制品 -> debug 9 // VERSION 版本号 const VERSION = "0.9.1"