From 7dfc21ee9eb1d67ad935c628d8694f212bd95026 Mon Sep 17 00:00:00 2001 From: Deepraj Date: Fri, 20 Sep 2024 09:26:57 +0530 Subject: [PATCH] Refactor deployment workflow to use relative paths for release.zip and venv --- .github/workflows/main_devhub-server.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main_devhub-server.yml b/.github/workflows/main_devhub-server.yml index 2771fce..7fdfbd3 100644 --- a/.github/workflows/main_devhub-server.yml +++ b/.github/workflows/main_devhub-server.yml @@ -43,10 +43,10 @@ jobs: - name: Upload artifact for deployment jobs uses: actions/upload-artifact@v4 with: - name: python-app + name: release-artifact # Updated artifact name path: | - release.zip - !venv/ + ./server/release.zip + !./server/venv/ deploy: runs-on: ubuntu-latest @@ -61,12 +61,11 @@ jobs: - name: Download artifact from build job uses: actions/download-artifact@v4 with: - name: python-app + name: release-artifact # Matching artifact name - name: Unzip artifact for deployment run: unzip release.zip - - name: Login to Azure uses: azure/login@v2 with: @@ -80,4 +79,3 @@ jobs: with: app-name: 'devhub-server' slot-name: 'Production' - \ No newline at end of file