File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,15 +18,15 @@ jobs:
18
18
with :
19
19
ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY_VCM }}
20
20
21
- - name : Copy new changes
22
- run : |
23
- ssh -o StrictHostKeyChecking=no ${{ secrets.VCM_HOST_USERNAME }}@${{ secrets.VCM_HOST_DNS }} 'rm -rf ${{ secrets.VCM_FRONTEND_DIR }}/*'
24
- scp -o StrictHostKeyChecking=no -r ./* "${{ secrets.VCM_HOST_USERNAME}}@${{ secrets.VCM_HOST_DNS }}:${{ secrets.VCM_FROTEND_DIR }}/"
21
+ - name : Pull New Changes
22
+ run : |
23
+ ssh -o StrictHostKeyChecking=no ${{ secrets.VCM_HOST_USERNAME }}@${{ secrets.VCM_HOST_DNS }} 'sudo cd ${{secrets.VCM_FRONTEND_DIR}}
24
+ && sudo git pull origin main'
25
25
- name : Build the changes and deploy
26
26
run : |
27
27
ssh -o StrictHostKeyChecking=no ${{ secrets.VCM_HOST_USERNAME }}@${{ secrets.VCM_HOST_DNS }} << EOF
28
28
sudo cd ${{ secrets.VCM_FRONTEND_DIR }}
29
- sudo npm install
29
+ sudo npm install --legacy-peer-deps
30
30
sudo npm run build
31
31
sudo rm -rf /var/www/*
32
32
sudo cp -r dist/* /var/www/
You can’t perform that action at this time.
0 commit comments