Skip to content

Commit 2832682

Browse files
Update dotnet-desktop.yml
1 parent 74cb69d commit 2832682

File tree

1 file changed

+27
-19
lines changed

1 file changed

+27
-19
lines changed
Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
21
name: CI
2+
33
on:
44
push:
55
branches: [ master ]
@@ -8,26 +8,34 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11-
1211
build:
1312
runs-on: windows-latest
13+
1414
steps:
15-
- name: Setup .NET Core SDK
16-
uses: actions/setup-dotnet@v1.7.2
17-
18-
- uses: actions/checkout@v2.3.4
19-
15+
- name: Setup .NET 8 SDK
16+
uses: actions/setup-dotnet@v3
17+
with:
18+
dotnet-version: '8.x'
19+
20+
- uses: actions/checkout@v3
21+
2022
- name: Restore Packages
21-
run: nuget restore
22-
23-
- name: setup-msbuild
24-
uses: microsoft/setup-msbuild@v1.1.3
25-
26-
- name: Build app for release
27-
run: msbuild EXILED-DLL-Archiver\EXILED-DLL-Archiver.csproj -t:rebuild -verbosity:diag -property:Configuration=Release
28-
29-
- name: Upload artifacts
30-
uses: actions/upload-artifact@v2
23+
run: dotnet restore
24+
25+
- name: Build app for release (Windows)
26+
run: dotnet publish -c Release -r win-x64 --self-contained true /p:PublishSingleFile=true
27+
28+
- name: Build app for release (Linux)
29+
run: dotnet publish -c Release -r linux-x64 --self-contained true /p:PublishSingleFile=true
30+
31+
- name: Upload Windows artifact
32+
uses: actions/upload-artifact@v3
33+
with:
34+
name: Exiled.Archiver-win-x64
35+
path: Exiled.Archiver/bin/Release/net8.0/win-x64/publish/Exiled.Archiver.exe
36+
37+
- name: Upload Linux artifact
38+
uses: actions/upload-artifact@v3
3139
with:
32-
name: EXILED-DLL-Archiver.exe
33-
path: EXILED-DLL-Archiver/bin/Release/EXILED-DLL-Archiver.exe
40+
name: Exiled.Archiver-linux-x64
41+
path: Exiled.Archiver/bin/Release/net8.0/linux-x64/publish/Exiled.Archiver

0 commit comments

Comments
 (0)