Skip to content

Commit

Permalink
update GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
terryzfeng committed Apr 8, 2024
1 parent 05f9a0e commit ec54310
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ jobs:

- name: Deploy dist to production
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: burnett01/rsync-deployments@6.0.0
uses: burnett01/rsync-deployments@7.0.1
with:
switches: -avzr --delete
path: dist/
path: ./
remote_path: ${{ secrets.PROD_WC_LOCATION }}
remote_host: ${{ secrets.HOST }}
remote_user: ${{ secrets.SSH_USER }}
remote_key: ${{ secrets.DEPLOY_KEY }}

- name: Deploy dist to dev
if: github.event_name == 'push' && github.ref == 'refs/heads/dev'
uses: burnett01/rsync-deployments@6.0.0
uses: burnett01/rsync-deployments@7.0.1
with:
switches: -avzr --delete
path: dist/
path: ./
remote_path: ${{ secrets.DEV_WC_LOCATION }}
remote_host: ${{ secrets.HOST }}
remote_user: ${{ secrets.SSH_USER }}
Expand Down

0 comments on commit ec54310

Please sign in to comment.