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
I-am-Josh committed Aug 22, 2024
1 parent aeafa71 commit 03b0f3a
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/main_convoselinkpreview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: zip release.zip ./* -r

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: node-app
path: release.zip
Expand All @@ -42,21 +42,30 @@ jobs:
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

permissions:
id-token: write #This is required for requesting the JWT

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

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


- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_C91D32D30BF34C49B8526354B58FCDC0 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_C1E928281F244168A332E7DA13B483FF }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_8D332EE223814220AA0035343ABA80B9 }}

- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
uses: azure/webapps-deploy@v3
with:
app-name: 'convoselinkpreview'
slot-name: 'Production'
package: .
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_1FF5D19324C74B2EA7353406BDE02523 }}

0 comments on commit 03b0f3a

Please sign in to comment.