From 151aa037bb4e1e7eab415e13ac5f4bb324ae97e1 Mon Sep 17 00:00:00 2001 From: raller1028 <57336867+raller1028@users.noreply.github.com> Date: Fri, 17 Feb 2023 11:46:30 +0800 Subject: [PATCH] Update push_test_server.yml Signed-off-by: raller1028 <57336867+raller1028@users.noreply.github.com> --- .github/workflows/push_test_server.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push_test_server.yml b/.github/workflows/push_test_server.yml index 7c59e4ac2..07b629297 100644 --- a/.github/workflows/push_test_server.yml +++ b/.github/workflows/push_test_server.yml @@ -45,11 +45,15 @@ jobs: # either 'goreleaser' (default) or 'goreleaser-pro' distribution: goreleaser version: latest - args: release --rm-dist + args: release --rm-dist --snapshot env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} + + - name: remove migration file + run: sudo find . -type f \( -name '*migration*' \) -delete + - name: install sshpass run: sudo apt install sshpass --yes @@ -62,7 +66,7 @@ jobs: - name: copy tar to target host shell: bash run: | - sshpass -p "${{ secrets.ssh_password }}" scp -r -o StrictHostKeyChecking=no -P ${{ secrets.ZEROTIER_PORT }} ./dist/*.gz root@${{ secrets.ZEROTIER_IP }}:/var/www/download + sshpass -p "${{ secrets.ssh_password }}" scp -r -o StrictHostKeyChecking=no -P 22 ./dist/*.gz root@10.147.18.11:/var/www/download echo "ping success" - name: send message run: |