chore(ci): Only execute test to build instead of rsync deploy on PR

Rsync deploy not working if PR from fork repo
This commit is contained in:
Jasmerah1966 2024-07-16 14:45:39 +07:00
parent 4be63912a0
commit 1ae194d2d4
No known key found for this signature in database

View file

@ -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 }}