Skip to content

Commit 1b99b65

Browse files
committed
Updated workflows.
Now the latest .NET 6 SDK's are automatically detected and installed based on when the latest preview is publicly released. Signed-off-by: AraHaan <[email protected]>
1 parent 1d99b64 commit 1b99b65

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

.github/workflows/codacy-analysis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
- name: .NET core build
2727
uses: actions/setup-dotnet@main
2828
with:
29-
dotnet-version: 6.0.100-preview.3.21202.5
29+
dotnet-version: '6.0.x'
30+
include-prerelease: true
3031

3132
- name: Restore
3233
run: dotnet restore

.github/workflows/dotnetcore-build.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616
- name: .NET core build
1717
uses: actions/setup-dotnet@main
1818
with:
19-
dotnet-version: 6.0.100-preview.3.21202.5
19+
dotnet-version: '6.0.x'
20+
include-prerelease: true
2021

2122
- name: Restore
2223
run: dotnet restore
@@ -25,7 +26,7 @@ jobs:
2526
- name: Build with dotnet
2627
run: |
2728
dotnet build --configuration Release --no-restore
28-
dotnet pack --configuration Release --no-build
29+
dotnet pack --configuration Release --no-build --no-restore
2930
shell: bash
3031

3132
- name: Test

.github/workflows/dotnetcore-publish.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717
- name: .NET core build
1818
uses: actions/setup-dotnet@main
1919
with:
20-
dotnet-version: 6.0.100-preview.3.21202.5
20+
dotnet-version: '6.0.x'
21+
include-prerelease: true
2122

2223
- name: Restore
2324
run: dotnet restore
@@ -26,7 +27,7 @@ jobs:
2627
- name: Build with dotnet
2728
run: |
2829
dotnet build --configuration Release --no-restore
29-
dotnet pack --configuration Release --no-build
30+
dotnet pack --configuration Release --no-build --no-restore
3031
shell: bash
3132

3233
- name: Test

.github/workflows/dotnetcore.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
- name: .NET core build
1515
uses: actions/setup-dotnet@main
1616
with:
17-
dotnet-version: 6.0.100-preview.3.21202.5
17+
dotnet-version: '6.0.x'
18+
include-prerelease: true
1819

1920
- name: Restore
2021
run: dotnet restore
@@ -23,7 +24,7 @@ jobs:
2324
- name: Build with dotnet
2425
run: |
2526
dotnet build --configuration Release --no-restore
26-
dotnet pack --configuration Release --no-build
27+
dotnet pack --configuration Release --no-build --no-restore
2728
shell: bash
2829

2930
- name: Test

0 commit comments

Comments
 (0)