Skip to content

Commit

Permalink
maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
amgno committed Sep 23, 2024
1 parent 12e9008 commit 9102531
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/main2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@ jobs:
ls &&
echo ✅ Listing directory &&
echo wow &&
cd /home/deployer/amgno.github.io &&
echo ✅ Pulling from GitHub &&
git pull &&
echo ✅ Starting docker &&
docker-compose down &&
docker-compose up -d &&
echo ✅ Done
if [ -d "/home/deployer/amgno.github.io" ]; then
cd /home/deployer/amgno.github.io &&
echo ✅ Pulling from GitHub &&
git pull &&
echo ✅ Starting docker &&
docker-compose down &&
docker-compose up -d &&
echo ✅ Done
else
echo ❌ Directory /home/deployer/amgno.github.io does not exist
fi

0 comments on commit 9102531

Please sign in to comment.