Skip to content

Commit

Permalink
upload
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Feb 13, 2022
1 parent f47739f commit a90dbec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
29 changes: 12 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/
2 changes: 1 addition & 1 deletion share/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a90dbec

Please sign in to comment.