From f47739fe2fe13d57eed21cef58511239b3fd9676 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 12 Feb 2022 22:18:57 +0800 Subject: [PATCH] CD DEBUG --- .github/workflows/release.yml | 14 ++++++-------- Makefile | 2 +- share/const.go | 2 +- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b1da93b..e9839844 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -102,22 +102,20 @@ jobs: make artifacts-macos - name: Push to Station (@Silicon Valley) - if: matrix.platform == 'ubuntu-latest' - uses: nogsantos/scp-deploy@master + uses: appleboy/scp-action@master with: - src: ./dist/release/* + source: ./dist/release/* + target: /data/release/ui/download/ host: ${{ secrets.SSH_HOST }} - remote: /data/release/ui/download/ port: ${{ secrets.SSH_PORT }} - user: ${{ secrets.SSH_USER }} + username: ${{ secrets.SSH_USER }} key: ${{ secrets.SSH_KEY }} - name: Distribution - if: matrix.platform == 'ubuntu-latest' 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 }} - port: ${{ secrets.SSH_PORT }} - script: ${{ secrets.SSH_CMD }} diff --git a/Makefile b/Makefile index 7758732d..bb46e980 100644 --- a/Makefile +++ b/Makefile @@ -293,7 +293,7 @@ artifacts-macos: clean # 制品 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 mkdir -p dist/release diff --git a/share/const.go b/share/const.go index 1d855dd7..9f7d269b 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 7 +// MacOS 制品 -> debug 8 // VERSION 版本号 const VERSION = "0.9.1"