Skip to content

Commit

Permalink
Add or update the Azure App Service build and deployment workflow config
Browse files Browse the repository at this point in the history
  • Loading branch information
JancoEngelbrecht committed Sep 14, 2024
1 parent 2f95f85 commit a33e435
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/main_newsheadlines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
run: |
npm install
npm run build --if-present
npm run test --if-present
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
Expand All @@ -38,21 +39,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_3F5E98CC133841C5AC731BA33DFFB51A }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_962A66A979234F208A7CD255DB71CE29 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_AB867D6557FE4FD592198AEB3E9993A1 }}

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_BF6A97A85C944483A24DCB3AC8EF4942 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_761ABDE4F60441C28854420D86B94004 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_90EEA4D3E6D14B1A90832C7552D881B2 }}

- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v3
Expand All @@ -61,4 +62,4 @@ jobs:
app-name: 'newsheadlines'
slot-name: 'Production'
package: .


0 comments on commit a33e435

Please sign in to comment.