From 2fff44bf14944b28884cf4d492ce356323f136e1 Mon Sep 17 00:00:00 2001 From: James Murgolo Date: Wed, 28 Feb 2024 20:52:12 -0500 Subject: [PATCH] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/main_scouting7127.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main_scouting7127.yml b/.github/workflows/main_scouting7127.yml index 6dc1468..b37e8b1 100644 --- a/.github/workflows/main_scouting7127.yml +++ b/.github/workflows/main_scouting7127.yml @@ -46,6 +46,8 @@ 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 @@ -55,6 +57,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_0AC67681D2C642CA99BA55B267E2751C }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_D326984F21B74C5CA30CC7780B5FF295 }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_E7F62A838BA04944B0A7430B5B6BF73B }} - name: 'Deploy to Azure Web App' uses: azure/webapps-deploy@v2 @@ -62,5 +71,5 @@ jobs: with: app-name: 'Scouting7127' slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_EC691B8978674A549C7C7DD389A10940 }} package: . + \ No newline at end of file