Skip to content

Commit

Permalink
Update master_findyourjob.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thakurdotdev authored Aug 18, 2024
1 parent 9d6613b commit 268f49d
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/master_findyourjob.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ jobs:

- name: npm install, build, and test
run: |
cd server
npm install
npm run build --if-present
npm run test --if-present
- name: Zip artifact for deployment
run: zip release.zip ./* -r
run: |
cd server
zip ../release.zip ./* -r
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
Expand All @@ -42,8 +45,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 +56,13 @@ jobs:

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

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_2F690F4287DC46C89EAA70A2AF41D94D }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_DCE55F7157EF428C9571C269D0E27B87 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_92048556FF184B8CB0CD328A129B9CB6 }}

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_2F690F4287DC46C89EAA70A2AF41D94D }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_DCE55F7157EF428C9571C269D0E27B87 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_92048556FF184B8CB0CD328A129B9CB6 }}

- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
Expand All @@ -68,4 +71,4 @@ jobs:
app-name: 'findyourjob'
slot-name: 'Production'
package: .


0 comments on commit 268f49d

Please sign in to comment.