Skip to content

Commit 32a55eb

Browse files
committed
chore: improve deployment workflow by ensuring a clean state
- Added commands to checkout the latest code and clean untracked files before pulling from the main branch in the deployment workflow.
1 parent 0f5e056 commit 32a55eb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
cd /home/${{ secrets.EC2_USER }}/CodeCollab
2828
2929
echo "=== Pulling latest code ==="
30+
git checkout -- .
31+
git clean -fd
3032
git pull origin main
3133
3234
echo "=== Installing backend dependencies ==="

0 commit comments

Comments
 (0)