From f9bc1d2fa4afc239e34f9284f32f95dcbc677b31 Mon Sep 17 00:00:00 2001 From: engigu Date: Wed, 3 Jan 2024 11:28:13 +0800 Subject: [PATCH] add custom depoly action -- fix build args --- .github/workflows/custom_deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/custom_deploy.yml b/.github/workflows/custom_deploy.yml index 19798a3..bff7991 100644 --- a/.github/workflows/custom_deploy.yml +++ b/.github/workflows/custom_deploy.yml @@ -19,7 +19,7 @@ jobs: go-version: '>=1.20.2' - name: Install npm dependencies - run: npm i + run: npm ci working-directory: web/ - name: Run npm build @@ -34,7 +34,7 @@ jobs: run: go mod tidy - name: Build Go - run: go build -o Message-Nest + run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o Message-Nest - name: Copy files to server uses: appleboy/scp-action@master