Skip to content

Commit

Permalink
Update backend-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyami authored Nov 26, 2023
1 parent 87ae1a8 commit ed394c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/backend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ jobs:
cache-dependency-path: './miaosha-server/go.sum'

- name: Build
run: CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o ./bin/miaosha ./main.go
run: |
go mod tidy
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o ./bin/miaosha ./main.go
- name: Copy file via SCP
run: sshpass -p "${{ secrets.SSH_PASSWORD }}" scp -o StrictHostKeyChecking=no ./bin/miaosha "${{ secrets.SSH_USERNAME }}"@"${{ secrets.SSH_HOST }}":"${{ secrets.DEPLOY_DIR }}"
Expand Down

0 comments on commit ed394c9

Please sign in to comment.