diff --git a/.github/workflows/main_convoselinkpreview.yml b/.github/workflows/main_convoselinkpreview.yml index 9d0d62b..6d4cf7c 100644 --- a/.github/workflows/main_convoselinkpreview.yml +++ b/.github/workflows/main_convoselinkpreview.yml @@ -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 @@ -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 }} \ No newline at end of file + \ No newline at end of file