From ebbaa30eb6ca4ef77ed8b76cd83aca5ece1c5d08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BB=E8=B0=B1?= <144224541+xixiIBN5100@users.noreply.github.com> Date: Wed, 18 Sep 2024 14:23:13 +0800 Subject: [PATCH] Update cd.yml --- .github/workflows/cd.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 168df0c..f2e2258 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -11,9 +11,7 @@ jobs: if: github.ref == 'refs/heads/dev' runs-on: ubuntu-latest steps: - - name: Check if forked - if: github.event.repository.fork == true - run: echo "This action is running on a forked repository and will not deploy." && exit 0 + - name: Checkout repository uses: actions/checkout@v2 @@ -48,7 +46,7 @@ jobs: env: SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_TOKEN_DEV }} SOURCE: "dist/" - TARGET: "/home/github-action-xsx/var/www/dist" + TARGET: "/var/www/dist" ARGS: "-avzr --delete" REMOTE_HOST: ${{ secrets.REMOTE_HOST_DEV }} REMOTE_USER: ${{ secrets.REMOTE_USER_DEV }}