Skip to content

Commit 1e3b010

Browse files
GitHub deploy file uses .NET 8
1 parent 9454053 commit 1e3b010

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/main_pwabuilder-safe-url.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ on:
1111

1212
env:
1313
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
14-
DOTNET_VERSION: '3.1' # set this to the dotnet version to use
14+
DOTNET_VERSION: '8.0' # set this to the dotnet version to use
1515

1616
jobs:
1717
build-and-deploy:
1818
runs-on: ubuntu-latest
19-
permissions:
20-
id-token: write #This is required for requesting the JWT
21-
contents: read #This is required for actions/checkout
19+
permissions:
20+
id-token: write #This is required for requesting the JWT
21+
contents: read #This is required for actions/checkout
2222

2323
steps:
2424
- name: 'Checkout GitHub Action'
@@ -35,19 +35,18 @@ jobs:
3535
pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
3636
dotnet build --configuration Release --output ./output
3737
popd
38-
39-
- name: Login to Azure
40-
uses: azure/login@v2
41-
with:
42-
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_0AE1D932C03D4C89BA4D14F9041A03A2 }}
43-
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_C5EF807EAE5844638950CE85858D22E0 }}
44-
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_D9B0CD7289994CFE8B16BF2ECE6C3E0C }}
38+
39+
- name: Login to Azure
40+
uses: azure/login@v2
41+
with:
42+
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_0AE1D932C03D4C89BA4D14F9041A03A2 }}
43+
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_C5EF807EAE5844638950CE85858D22E0 }}
44+
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_D9B0CD7289994CFE8B16BF2ECE6C3E0C }}
4545

4646
- name: 'Run Azure Functions Action'
4747
uses: Azure/functions-action@v1
4848
id: fa
4949
with:
5050
app-name: 'pwabuilder-safe-url'
5151
slot-name: 'Production'
52-
package: '${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}/output'
53-
52+
package: '${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}/output'

0 commit comments

Comments
 (0)