Skip to content

Commit 6d14392

Browse files
committed
Testing dev
1 parent ef9f035 commit 6d14392

File tree

1 file changed

+15
-21
lines changed

1 file changed

+15
-21
lines changed

.github/workflows/dev.yml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,22 @@ on:
1212
jobs:
1313
build:
1414
runs-on: windows-latest
15+
permissions:
16+
contents: read
1517

1618
steps:
1719
- 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+
2321
- name: Set up .NET Core
24-
uses: actions/setup-dotnet@v1
22+
uses: actions/setup-dotnet@v4
2523
with:
2624
dotnet-version: '7.x'
27-
include-prerelease: true
2825

2926
- name: Build with dotnet
30-
working-directory: ./Microsoft.PWABuilder.IOS.Web
3127
run: dotnet build --configuration Release
3228

3329
- 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"
3631

3732
- name: Upload artifact for deployment job
3833
uses: actions/upload-artifact@v4
@@ -42,31 +37,30 @@ jobs:
4237

4338
deploy:
4439
runs-on: windows-latest
45-
permissions:
46-
id-token: write
47-
contents: read
4840
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
5245

5346
steps:
5447
- name: Download artifact from build job
5548
uses: actions/download-artifact@v4
5649
with:
5750
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
6154
with:
6255
client-id: ${{ secrets.AZURE_APP_ID }}
6356
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
6457
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
6558

6659
- name: Deploy to Azure Web App
6760
id: deploy-to-webapp
68-
uses: azure/webapps-deploy@v2
61+
uses: azure/webapps-deploy@v3
6962
with:
7063
app-name: 'pwabuilder-ios'
7164
slot-name: 'dev'
72-
package: .
65+
package: .
66+

0 commit comments

Comments
 (0)