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 - name: Build
run: hugo --minify --gc --enableGitInfo --cleanDestinationDir run: hugo --minify --gc --enableGitInfo --cleanDestinationDir
- name: Deploy to staging # - name: Deploy to staging
uses: burnett01/rsync-deployments@5.2 # uses: burnett01/rsync-deployments@5.2
with: # with:
switches: -avzr --quiet --delete # switches: -avzr --quiet --delete
path: public/ # path: public/
remote_path: ${{ secrets.DEPLOY_PATH }} # remote_path: ${{ secrets.DEPLOY_PATH }}
remote_host: ${{ secrets.DEPLOY_HOST }} # remote_host: ${{ secrets.DEPLOY_HOST }}
remote_user: ${{ secrets.DEPLOY_USER }} # remote_user: ${{ secrets.DEPLOY_USER }}
remote_key: ${{ secrets.DEPLOY_KEY }} # remote_key: ${{ secrets.DEPLOY_KEY }}