Skip to content

Commit d7b3512

Browse files
author
rhamlett_microsoft
committed
Disable the .NET 8 build and deployment
1 parent 177ff12 commit d7b3512

File tree

2 files changed

+39
-32
lines changed

2 files changed

+39
-32
lines changed

.github/workflows/azure-deploy.yml

Lines changed: 36 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,20 @@ on:
66
- main
77
workflow_dispatch:
88
inputs:
9-
deploy_net8:
10-
description: 'Deploy .NET 8 version'
11-
type: boolean
12-
default: true
9+
# .NET 8 disabled - uncomment to re-enable:
10+
# deploy_net8:
11+
# description: 'Deploy .NET 8 version'
12+
# type: boolean
13+
# default: true
1314
deploy_net10:
1415
description: 'Deploy .NET 10 version'
1516
type: boolean
1617
default: true
1718

1819
env:
1920
# App Service names - update these to match your Azure resources
20-
AZURE_WEBAPP_NET8: perfsimdotnet8
21+
# .NET 8 disabled - uncomment to re-enable:
22+
# AZURE_WEBAPP_NET8: perfsimdotnet8
2123
AZURE_WEBAPP_NET10: PerfSimDotNet
2224

2325
permissions:
@@ -30,9 +32,10 @@ jobs:
3032
strategy:
3133
matrix:
3234
include:
33-
- framework: net8.0
34-
dotnet-version: '8.0.x'
35-
artifact-name: publish-net8
35+
# .NET 8 disabled - uncomment to re-enable:
36+
# - framework: net8.0
37+
# dotnet-version: '8.0.x'
38+
# artifact-name: publish-net8
3639
- framework: net10.0
3740
dotnet-version: '10.0.x'
3841
artifact-name: publish-net10
@@ -61,30 +64,31 @@ jobs:
6164
name: ${{ matrix.artifact-name }}
6265
path: ./publish
6366

64-
deploy-net8:
65-
needs: build
66-
runs-on: ubuntu-latest
67-
if: github.event_name == 'push' || github.event.inputs.deploy_net8 == 'true'
68-
69-
steps:
70-
- name: Download .NET 8 artifact
71-
uses: actions/download-artifact@v4
72-
with:
73-
name: publish-net8
74-
path: ./publish-net8
75-
76-
- name: Login to Azure
77-
uses: azure/login@v2
78-
with:
79-
client-id: ${{ secrets.AZURE_CLIENT_ID }}
80-
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
81-
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
82-
83-
- name: Deploy to Azure Web App (.NET 8)
84-
uses: azure/webapps-deploy@v3
85-
with:
86-
app-name: ${{ env.AZURE_WEBAPP_NET8 }}
87-
package: ./publish-net8
67+
# .NET 8 deployment disabled - uncomment to re-enable:
68+
# deploy-net8:
69+
# needs: build
70+
# runs-on: ubuntu-latest
71+
# if: github.event_name == 'push' || github.event.inputs.deploy_net8 == 'true'
72+
#
73+
# steps:
74+
# - name: Download .NET 8 artifact
75+
# uses: actions/download-artifact@v4
76+
# with:
77+
# name: publish-net8
78+
# path: ./publish-net8
79+
#
80+
# - name: Login to Azure
81+
# uses: azure/login@v2
82+
# with:
83+
# client-id: ${{ secrets.AZURE_CLIENT_ID }}
84+
# tenant-id: ${{ secrets.AZURE_TENANT_ID }}
85+
# subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
86+
#
87+
# - name: Deploy to Azure Web App (.NET 8)
88+
# uses: azure/webapps-deploy@v3
89+
# with:
90+
# app-name: ${{ env.AZURE_WEBAPP_NET8 }}
91+
# package: ./publish-net8
8892

8993
deploy-net10:
9094
needs: build

Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77

88
<PropertyGroup>
99
<!-- Multi-target .NET 8.0 and .NET 10.0 for diagnostics compatibility -->
10+
<!-- .NET 8 disabled - uncomment to re-enable dual targeting:
1011
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
12+
-->
13+
<TargetFrameworks>net10.0</TargetFrameworks>
1114

1215
<!-- Enable nullable reference types for defensive programming (Constitution Principle IV) -->
1316
<Nullable>enable</Nullable>

0 commit comments

Comments
 (0)