Skip to content

Commit

Permalink
fix(ci): no delete migrations folder
Browse files Browse the repository at this point in the history
  • Loading branch information
javascriptizer1 committed Feb 3, 2025
1 parent 919afdb commit 6bc60e4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/gymnote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,6 @@ jobs:
- name: Copy migrations to VPS
run: |
scp -i deploy_key.pem -o StrictHostKeyChecking=no -r migrations $VPS_USER@$VPS_HOST:/home/$VPS_USER/apps/gymnote/migrations
ssh -i deploy_key.pem -o StrictHostKeyChecking=no $VPS_USER@$VPS_HOST << EOF
if [ -d "/home/$VPS_USER/apps/gymnote/migrations" ]; then
echo "Removing old migrations directory"
rm -rf /home/$VPS_USER/apps/gymnote/migrations
fi
mv /home/$VPS_USER/apps/gymnote/migrations /home/$VPS_USER/apps/gymnote/migrations
EOF
- name: Run database migrations
run: |
Expand Down

0 comments on commit 6bc60e4

Please sign in to comment.