From 1ae194d2d46c88ffa7de61bf00de9fc73462f441 Mon Sep 17 00:00:00 2001 From: Jasmerah1966 Date: Tue, 16 Jul 2024 14:45:39 +0700 Subject: [PATCH] chore(ci): Only execute test to build instead of rsync deploy on PR Rsync deploy not working if PR from fork repo --- .github/workflows/staging.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/staging.yaml b/.github/workflows/staging.yaml index 7d6157f..3191872 100644 --- a/.github/workflows/staging.yaml +++ b/.github/workflows/staging.yaml @@ -53,12 +53,12 @@ jobs: - name: Build run: hugo --minify --gc --enableGitInfo --cleanDestinationDir - - name: Deploy to staging - uses: burnett01/rsync-deployments@5.2 - with: - switches: -avzr --quiet --delete - path: public/ - remote_path: ${{ secrets.DEPLOY_PATH }} - remote_host: ${{ secrets.DEPLOY_HOST }} - remote_user: ${{ secrets.DEPLOY_USER }} - remote_key: ${{ secrets.DEPLOY_KEY }} + # - name: Deploy to staging + # uses: burnett01/rsync-deployments@5.2 + # with: + # switches: -avzr --quiet --delete + # path: public/ + # remote_path: ${{ secrets.DEPLOY_PATH }} + # remote_host: ${{ secrets.DEPLOY_HOST }} + # remote_user: ${{ secrets.DEPLOY_USER }} + # remote_key: ${{ secrets.DEPLOY_KEY }}