This commit is contained in:
Max 2022-02-12 22:18:57 +08:00
parent 92b2af94f1
commit f47739fe2f
3 changed files with 8 additions and 10 deletions

View file

@ -102,22 +102,20 @@ jobs:
make artifacts-macos make artifacts-macos
- name: Push to Station (@Silicon Valley) - name: Push to Station (@Silicon Valley)
if: matrix.platform == 'ubuntu-latest' uses: appleboy/scp-action@master
uses: nogsantos/scp-deploy@master
with: with:
src: ./dist/release/* source: ./dist/release/*
target: /data/release/ui/download/
host: ${{ secrets.SSH_HOST }} host: ${{ secrets.SSH_HOST }}
remote: /data/release/ui/download/
port: ${{ secrets.SSH_PORT }} port: ${{ secrets.SSH_PORT }}
user: ${{ secrets.SSH_USER }} username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }} key: ${{ secrets.SSH_KEY }}
- name: Distribution - name: Distribution
if: matrix.platform == 'ubuntu-latest'
uses: appleboy/ssh-action@master uses: appleboy/ssh-action@master
with: with:
script: ${{ secrets.SSH_CMD }}
host: ${{ secrets.SSH_HOST }} host: ${{ secrets.SSH_HOST }}
port: ${{ secrets.SSH_PORT }}
username: ${{ secrets.SSH_USER }} username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }} key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
script: ${{ secrets.SSH_CMD }}

View file

@ -293,7 +293,7 @@ artifacts-macos: clean
# 制品 # 制品
mkdir -p dist mkdir -p dist
CGO_ENABLED=1 CGO_LDFLAGS="-static" CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -v -o dist/yao-${VERSION}-darwin-amd64 CGO_ENABLED=1 CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -v -o dist/yao-${VERSION}-darwin-amd64
CGO_ENABLED=1 CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -v -o dist/yao-${VERSION}-darwin-arm64 CGO_ENABLED=1 CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -v -o dist/yao-${VERSION}-darwin-arm64
mkdir -p dist/release mkdir -p dist/release

View file

@ -4,7 +4,7 @@ package share
// session -> freeport fix bug // session -> freeport fix bug
// 更新制品目录 -> ui/downloads // 更新制品目录 -> ui/downloads
// Arm64 制品 -> arm build test // Arm64 制品 -> arm build test
// MacOS 制品 -> debug 7 // MacOS 制品 -> debug 8
// VERSION 版本号 // VERSION 版本号
const VERSION = "0.9.1" const VERSION = "0.9.1"