Skip to content

Commit 5c4cf64

Browse files
committed
Update github flow
1 parent a63c4be commit 5c4cf64

1 file changed

Lines changed: 19 additions & 10 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
name: .NET
1+
name: Setup CodeAnalysis .NET
22

33
on:
44
push:
55
branches: [ main, dev, feature/*, fix/*, release/* ]
66

7-
pull_request:
8-
branches: [ main ]
9-
107
release:
118
types: [ published ]
129

@@ -16,14 +13,15 @@ jobs:
1613
runs-on: ubuntu-latest
1714

1815
steps:
19-
- name: Checkout repository
20-
uses: actions/checkout@v4
21-
22-
- name: Setup .NET
23-
uses: actions/setup-dotnet@v4
16+
- name: Checkout repo
17+
uses: actions/checkout@v6
18+
- name: Setup dotnet
19+
uses: actions/setup-dotnet@v5
2420
with:
2521
dotnet-version: |
26-
9.0.x
22+
10.0.x
23+
# dotnet-quality: 'preview' # When using preview versions
24+
dotnet-quality: 'ga' # General Availability
2725

2826
# Create Local NuGet Source
2927

@@ -55,6 +53,17 @@ jobs:
5553
- name: Pack CodeAnalysis.SourceBuilder
5654
run: dotnet pack ./src/*/CodeAnalysis.SourceBuilder.csproj --no-restore -o ~/nuget -c Release
5755

56+
# CodeAnalysis
57+
58+
- name: Restore CodeAnalysis
59+
run: dotnet restore ./src/*/CodeAnalysis.csproj
60+
61+
- name: Build CodeAnalysis
62+
run: dotnet build ./src/*/CodeAnalysis.csproj --no-restore -c Release
63+
64+
- name: Pack CodeAnalysis
65+
run: dotnet pack ./src/*/CodeAnalysis.csproj --no-restore -o ~/nuget -c Release
66+
5867
# Push
5968

6069
- name: Push Packages

0 commit comments

Comments
 (0)