Skip to content

Commit 5e86667

Browse files
authored
Update main_eoagritool.yml
Updated
1 parent 99d5a44 commit 5e86667

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/main_eoagritool.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ jobs:
4646
name: 'Production'
4747
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
4848
permissions:
49-
id-token: write # This is required for requesting the JWT
50-
contents: read # This is required for actions/checkout
49+
id-token: write # Required for requesting the JWT
50+
contents: read # Required for actions/checkout
5151

5252
steps:
5353
- name: Download artifact from build job
@@ -58,17 +58,18 @@ jobs:
5858
- name: Unzip artifact for deployment
5959
run: unzip release.zip
6060

61-
6261
- name: Login to Azure
63-
uses: azure/login@v2 # Fixed version
62+
uses: azure/login@v2
6463
with:
65-
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID }}
66-
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID }}
67-
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID }}
64+
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_B88D3C7A7060491CB674B14E06D42C55 }} # Choose the correct one
65+
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_78A8FAD52D144DAFB2B36B3D4D01B35C }} # Choose the correct one
66+
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_BB2D4206F5AC44CDA3289568B63A38F7 }} # Choose the correct one
67+
allow-no-subscriptions: true # Ensures login works even if no subscriptions are returned
6868

6969
- name: Deploy to Azure Web App
7070
uses: azure/webapps-deploy@v3
7171
id: deploy-to-webapp
7272
with:
7373
app-name: 'EOAgriTool'
74-
slot-name: 'Production'
74+
slot-name: 'Production'
75+
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}

0 commit comments

Comments
 (0)