diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 8fd428e..c2150c8 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -2,6 +2,11 @@ name: Backend Deployment on: push: + # Triggers only when code is pushed to the development branch + # that modifies files in the API directory + branches: + - development + paths: - 'API/**' @@ -25,7 +30,7 @@ jobs: - name: Install Composer dependencies run: | - cd API # Assuming your Laravel app directory is 'API' + cd API composer install --no-interaction --prefer-dist --optimize-autoloader - name: Set up Docker Buildx