Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizCampedelli authored Sep 6, 2024
1 parent 50b5416 commit 77a4a4e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ jobs:
# Install git if not already installed
sudo yum install -y git || sudo apt-get install -y git
# Pull the latest code from the repository
git pull origin main
# Clone the repository if .git directory doesn't exist, otherwise pull latest changes
if [ ! -d ".git" ]; then
git clone https://github.com/LuizCampedelli/Projeto_Api_Pet_ADA_Final.git .
else
git pull origin main
fi
# Ensure virtual environment exists, create if not
if [ ! -d "/home/ec2-user/myenv" ]; then
Expand Down

0 comments on commit 77a4a4e

Please sign in to comment.