Skip to content

Commit

Permalink
Update main_safehaven2.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaloney111 authored Jun 6, 2024
1 parent fca33ad commit ea2178d
Showing 1 changed file with 13 additions and 30 deletions.
43 changes: 13 additions & 30 deletions .github/workflows/main_safehaven2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ea2178d

Please sign in to comment.