diff --git a/.gitea/workflows/build-and-deploy.yml b/.gitea/workflows/build-and-deploy.yml index 46e440f..48ed958 100644 --- a/.gitea/workflows/build-and-deploy.yml +++ b/.gitea/workflows/build-and-deploy.yml @@ -39,7 +39,11 @@ jobs: # Navigate to deployment directory cd /opt/littleshop - # Pull latest code + # Clone or pull latest code + if [ ! -d .git ]; then + echo "Cloning repository..." + git clone https://git.silverlabs.uk/Jamie/littleshop.git . + fi echo "Pulling latest code from git..." git fetch origin git checkout $VERSION || git checkout main @@ -177,7 +181,7 @@ jobs: # Clone or pull latest code if [ ! -d .git ]; then echo "Cloning repository..." - git clone ${{ gitea.repositoryUrl }} . + git clone https://git.silverlabs.uk/Jamie/littleshop.git . fi echo "Pulling latest code from git..." git fetch origin