Skip to content

Commit ad9d75e

Browse files
Add or update the Azure App Service build and deployment workflow config
1 parent 59e6e28 commit ad9d75e

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/master_jjodel-persistence.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
dotnet-version: '9.x'
2525

2626
- name: Build with dotnet
27-
run: dotnet build jjodel-persistence/jjodel-persistence.sln --configuration Release
27+
run: dotnet build --configuration Release
2828

2929
- name: dotnet publish
30-
run: dotnet publish jjodel-persistence/jjodel-persistence.sln -c Release -o ${{env.DOTNET_ROOT}}/myapp
30+
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
3131

3232
- name: Upload artifact for deployment job
3333
uses: actions/upload-artifact@v4
@@ -38,9 +38,6 @@ jobs:
3838
deploy:
3939
runs-on: ubuntu-latest
4040
needs: build
41-
environment:
42-
name: 'Production'
43-
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
4441
permissions:
4542
id-token: write #This is required for requesting the JWT
4643
contents: read #This is required for actions/checkout
@@ -49,14 +46,14 @@ jobs:
4946
- name: Download artifact from build job
5047
uses: actions/download-artifact@v4
5148
with:
52-
name: .net-app
53-
49+
name: .net-app
50+
5451
- name: Login to Azure
5552
uses: azure/login@v2
5653
with:
57-
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_68B2683E51D94CF69EF484CA14492C25 }}
58-
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_1A7F01E32E434E59906F63C30BFB49FB }}
59-
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_82F0854B3D1D4F4E9483799E40405CDF }}
54+
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_6F51F753C8E6491891693113768816BF }}
55+
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_E9210D6129854C8CA5F1C68AF4EE74B6 }}
56+
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_A72ECE61BCD243A8B75A8E26D3349CFE }}
6057

6158
- name: Deploy to Azure Web App
6259
id: deploy-to-webapp

0 commit comments

Comments
 (0)