Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
christinadechalk committed Nov 19, 2024
2 parents 8e10fa4 + cd0c94d commit 764350f
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/backend_focusfruit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,19 @@ jobs:

- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm run test --if-present
npm install --workspaces=false
npm run -w express-backend build --if-present
npm run -w express-backend test --if-present
working-directory: packages/express-backend

- name: Zip artifact for deployment
run: zip release.zip ./* -r
working-directory: packages/express-backend

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: node-app
name: node-appb
path: .

deploy:
Expand All @@ -39,21 +44,21 @@ jobs:
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT
permissions:
id-token: write #This is required for requesting the JWT

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: node-app

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_290EF528711248B6AB538DE20E380C7C }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_EA503942294841D9B9320C5CE49A36E3 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_377FE0A7E8154614A9075E7EFFF0FB94 }}

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_290EF528711248B6AB538DE20E380C7C }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_EA503942294841D9B9320C5CE49A36E3 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_377FE0A7E8154614A9075E7EFFF0FB94 }}

- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v3
Expand Down

0 comments on commit 764350f

Please sign in to comment.