Skip to content

Commit 94e0337

Browse files
authored
Update dotnet-desktop.yml
1 parent 53d94a7 commit 94e0337

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

.github/workflows/dotnet-desktop.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup .NET SDK
1919
uses: actions/setup-dotnet@v1.9.0
2020
with:
21-
dotnet-version: '7.0.x'
21+
dotnet-version: '8.0.x'
2222

2323
- name: Checkout
2424
uses: actions/checkout@v3
@@ -27,28 +27,13 @@ jobs:
2727
run: dotnet restore src/Weather.sln
2828

2929
# Build applications
30-
- name: Build win-x86
31-
run: dotnet publish src\WeatherCalendar\WeatherCalendar.csproj -r win-x86 -p:Configuration=Release -p:PublishSingleFile=true -p:PublishReadyToRun=true -p:IncludeNativeLibrariesForSelfExtract=true --self-contained true -property:Version=${{ env.VERSION }}
32-
33-
- name: Zip win-x86 build
34-
uses: vimtor/action-zip@v1
35-
with:
36-
files: src\WeatherCalendar\bin\Release\net7.0-windows\win-x86\publish\
37-
dest: WeatherCalendar-Windows-x86.zip
38-
39-
- name: Collect win-x86 artifacts
40-
uses: actions/upload-artifact@v2
41-
with:
42-
name: WeatherCalendar-Windows-x86
43-
path: ${{ github.workspace }}\WeatherCalendar-Windows-x86.zip
44-
4530
- name: Build win-x64
46-
run: dotnet publish src\WeatherCalendar\WeatherCalendar.csproj -r win-x64 -p:Configuration=Release -p:PublishSingleFile=true -p:PublishReadyToRun=true -p:IncludeNativeLibrariesForSelfExtract=true --self-contained true -property:Version=${{ env.VERSION }}
31+
run: dotnet publish src\WeatherCalendar\WeatherCalendar.csproj -r win-x64 -p:Configuration=Release -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true --self-contained true -property:Version=${{ env.VERSION }}
4732

4833
- name: Zip win-x64 build
4934
uses: vimtor/action-zip@v1
5035
with:
51-
files: src\WeatherCalendar\bin\Release\net7.0-windows\win-x64\publish\
36+
files: src\WeatherCalendar\bin\Release\net8.0-windows\win-x64\publish\
5237
dest: WeatherCalendar-Windows-x64.zip
5338

5439
- name: Collect win-x64 artifacts
@@ -73,5 +58,4 @@ jobs:
7358
tag_name: v${{ env.VERSION }}
7459
generate_release_notes: true
7560
files: |
76-
${{ github.workspace }}\WeatherCalendar-Windows-x86.zip
7761
${{ github.workspace }}\WeatherCalendar-Windows-x64.zip

0 commit comments

Comments
 (0)