Skip to content

Commit

Permalink
add github workflow for continuous deployment (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
theoden42 authored Oct 19, 2024
1 parent 95aa2bf commit 80f63f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:

- name: Copy new changes
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.VCM_HOST_USERNAME }}@${{ secrets.VCM_HOST_DNS }} 'rm -rf ${{ VCM_FRONTEND_DIR }}'
scp -o StrictHostKeyChecking=no -r ./* ${{ secrets.VCM_HOST_USERNAME}}@${{ secrets.VCM_HOST_DNS }}:${{VCM_FROTEND_DIR}}
ssh -o StrictHostKeyChecking=no ${{ secrets.VCM_HOST_USERNAME }}@${{ secrets.VCM_HOST_DNS }} 'rm -rf ${{ secrets.VCM_FRONTEND_DIR }}'
scp -o StrictHostKeyChecking=no -r ./* ${{ secrets.VCM_HOST_USERNAME}}@${{ secrets.VCM_HOST_DNS }}:${{ secrets.VCM_FROTEND_DIR }}
- name: Build the changes and deploy
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.VCM_HOST_USERNAME }}@${{ secrets.VCM_HOST_DNS }} << EOF
sudo cd ${{ VCM_FRONTEND_DIR }}
sudo cd ${{ secrets.VCM_FRONTEND_DIR }}
sudo npm install
sudo npm run build
sudo rm -rf /var/www
Expand Down

0 comments on commit 80f63f3

Please sign in to comment.