Skip to content

Commit 5e71176

Browse files
authored
Update master_wms-uz.yml
1 parent 0623593 commit 5e71176

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/master_wms-uz.yml

+14-12
Original file line numberDiff line numberDiff line change
@@ -23,37 +23,39 @@ jobs:
2323

2424
- name: Build with dotnet
2525
run: dotnet build --configuration Release
26+
working-directory: WMS.WebUI
2627

2728
- name: dotnet publish
28-
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
29+
run: dotnet publish -c Release -o ${{env.GITHUB_WORKSPACE}}\myapp
30+
working-directory: WMS.WebUI
2931

3032
- name: Upload artifact for deployment job
3133
uses: actions/upload-artifact@v4
3234
with:
3335
name: .net-app
34-
path: ${{env.DOTNET_ROOT}}/myapp
36+
path: ${{env.GITHUB_WORKSPACE}}\myapp
3537

3638
deploy:
3739
runs-on: windows-latest
3840
needs: build
3941
environment:
4042
name: 'Production'
4143
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
42-
permissions:
43-
id-token: write #This is required for requesting the JWT
44+
permissions:
45+
id-token: write #This is required for requesting the JWT
4446

4547
steps:
4648
- name: Download artifact from build job
4749
uses: actions/download-artifact@v4
4850
with:
4951
name: .net-app
50-
51-
- name: Login to Azure
52-
uses: azure/login@v2
53-
with:
54-
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_CF1C6DFFF15946BBA2FA2C10E382A358 }}
55-
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_3EB382EFBCE64A4BBE0B6DF56D5F4DB8 }}
56-
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_8842B7261F5343D491289BAA71366B39 }}
52+
53+
- name: Login to Azure
54+
uses: azure/login@v2
55+
with:
56+
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_CF1C6DFFF15946BBA2FA2C10E382A358 }}
57+
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_3EB382EFBCE64A4BBE0B6DF56D5F4DB8 }}
58+
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_8842B7261F5343D491289BAA71366B39 }}
5759

5860
- name: Deploy to Azure Web App
5961
id: deploy-to-webapp
@@ -62,4 +64,4 @@ jobs:
6264
app-name: 'wms-uz'
6365
slot-name: 'Production'
6466
package: .
65-
67+

0 commit comments

Comments
 (0)