From 1b609793ba41591b274ac12a59f8c0f7ac115cbf Mon Sep 17 00:00:00 2001 From: Cameron Green Date: Thu, 7 Nov 2024 20:41:13 -0500 Subject: [PATCH 1/2] First attempt for backend workflow changes for Issue #64 --- .github/workflows/backend.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 8fd428e..a4ffd8b 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -2,6 +2,9 @@ name: Backend Deployment on: push: + branches: + - development # Triggers only when code is pushed to the development branch + paths: - 'API/**' @@ -25,7 +28,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 From 411a87737f9eefe1cdc9f5b17167ac9d2586e49b Mon Sep 17 00:00:00 2001 From: Cameron Green Date: Fri, 8 Nov 2024 12:32:30 -0500 Subject: [PATCH 2/2] Modify comment to better reflect how new backend workflow changes work --- .github/workflows/backend.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index a4ffd8b..c2150c8 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -2,8 +2,10 @@ name: Backend Deployment on: push: + # Triggers only when code is pushed to the development branch + # that modifies files in the API directory branches: - - development # Triggers only when code is pushed to the development branch + - development paths: - 'API/**'