12
12
jobs :
13
13
build :
14
14
runs-on : windows-latest
15
+ permissions :
16
+ contents : read
15
17
16
18
steps :
17
19
- uses : actions/checkout@v4
18
- - uses : microsoft/variable-substitution@v1
19
- with :
20
- files : ' ./Microsoft.PWABuilder.IOS.Web/appsettings.Production.json'
21
- env :
22
- AppSettings.ApplicationInsightsConnectionString : ${{secrets.APPLICATIONINSIGHTSCONNECTIONSTRING}}
20
+
23
21
- name : Set up .NET Core
24
- uses : actions/setup-dotnet@v1
22
+ uses : actions/setup-dotnet@v4
25
23
with :
26
24
dotnet-version : ' 7.x'
27
- include-prerelease : true
28
25
29
26
- name : Build with dotnet
30
- working-directory : ./Microsoft.PWABuilder.IOS.Web
31
27
run : dotnet build --configuration Release
32
28
33
29
- name : dotnet publish
34
- working-directory : ./Microsoft.PWABuilder.IOS.Web
35
- run : dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
30
+ run : dotnet publish -c Release -o "${{env.DOTNET_ROOT}}/myapp"
36
31
37
32
- name : Upload artifact for deployment job
38
33
uses : actions/upload-artifact@v4
@@ -42,31 +37,30 @@ jobs:
42
37
43
38
deploy :
44
39
runs-on : windows-latest
45
- permissions :
46
- id-token : write
47
- contents : read
48
40
needs : build
49
- environment :
50
- name : ' dev'
51
- url : ${{ steps.deploy-to-webapp.outputs.webapp-url }}
41
+
42
+ permissions :
43
+ id-token : write # This is required for requesting the JWT
44
+ contents : read # This is required for actions/checkout
52
45
53
46
steps :
54
47
- name : Download artifact from build job
55
48
uses : actions/download-artifact@v4
56
49
with :
57
50
name : .net-app
58
-
59
- - name : Authenticate to Azure
60
- uses : azure/login@v1
51
+
52
+ - name : Login to Azure
53
+ uses : azure/login@v2
61
54
with :
62
55
client-id : ${{ secrets.AZURE_APP_ID }}
63
56
tenant-id : ${{ secrets.AZURE_TENANT_ID }}
64
57
subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
65
58
66
59
- name : Deploy to Azure Web App
67
60
id : deploy-to-webapp
68
- uses : azure/webapps-deploy@v2
61
+ uses : azure/webapps-deploy@v3
69
62
with :
70
63
app-name : ' pwabuilder-ios'
71
64
slot-name : ' dev'
72
- package : .
65
+ package : .
66
+
0 commit comments