Skip to content

Commit

Permalink
fix(Github action): updated deployment path in the yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
wadhia-yash committed Jul 8, 2024
1 parent 5b63c76 commit 2b217d1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 65 deletions.

This file was deleted.

24 changes: 13 additions & 11 deletions .github/workflows/web-app_web-app-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ jobs:
npm run build --if-present
npm run test --if-present
- name: Zip artifact for deployment
run: zip release.zip ./* -r
- name: Zip artifact for deployment
run: |
cd build
zip -r ../release.zip .
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
Expand All @@ -42,8 +44,8 @@ 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
Expand All @@ -53,13 +55,13 @@ jobs:

- name: Unzip artifact for deployment
run: unzip release.zip

- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_818727A488FB487EA3BCC61BEC337FDD }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_58CC6F3841FB49A38469650AD296DCC8 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_7B7BF9D41759471DBA0ED64C44AF88AE }}

- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_818727A488FB487EA3BCC61BEC337FDD }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_58CC6F3841FB49A38469650AD296DCC8 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_7B7BF9D41759471DBA0ED64C44AF88AE }}

- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
Expand Down

0 comments on commit 2b217d1

Please sign in to comment.