From ea2178d90959eb2d14eae05c086c16a20d47e876 Mon Sep 17 00:00:00 2001 From: Cameron Maloney Date: Thu, 6 Jun 2024 13:07:21 -0700 Subject: [PATCH] Update main_safehaven2.yml --- .github/workflows/main_safehaven2.yml | 43 ++++++++------------------- 1 file changed, 13 insertions(+), 30 deletions(-) diff --git a/.github/workflows/main_safehaven2.yml b/.github/workflows/main_safehaven2.yml index 621327c..6bb0af7 100644 --- a/.github/workflows/main_safehaven2.yml +++ b/.github/workflows/main_safehaven2.yml @@ -22,43 +22,26 @@ jobs: run: | cd packages/express-backend npm install - npm install - npm install - npm install - npm install - npm install - npm install - npm install - npm install - npm install - npm install - npm install - npm install - npm install - npm install - npm install - npm install - npm install - npm install - npm install - npm install - npm install - npm install - npm install - npm ci cd ../../ - - name: Create artifact archive + - name: Create artifact directory run: | + if (Test-Path -Path artifact) { + Remove-Item -Recurse -Force artifact + } New-Item -Path artifact -ItemType Directory - Compress-Archive -Path .\* -DestinationPath artifact\node-app.zip + shell: powershell + + - name: Create artifact archive + run: | + Compress-Archive -Path .\* -DestinationPath artifact\nodeapp.zip shell: powershell - name: Upload artifact for deployment job uses: actions/upload-artifact@v3 with: - name: node-app - path: artifact/node-app.zip + name: nodeapp + path: artifact/nodeapp.zip deploy: runs-on: ubuntu-latest @@ -73,11 +56,11 @@ jobs: - name: Download artifact from build job uses: actions/download-artifact@v3 with: - name: node-app + name: nodeapp path: ./artifact - name: Unzip artifact - run: unzip artifact/node-app.zip -d ./artifact + run: unzip artifact/nodeapp.zip -d ./artifact - name: Login to Azure uses: azure/login@v1